Skip to content

Commit cc49108

Browse files
Merge pull request #31 from stefanvermaas/use-better-module-name
General improvements
2 parents 367ae6b + de6c0d3 commit cc49108

File tree

11 files changed

+72
-171
lines changed

11 files changed

+72
-171
lines changed

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
*.gem
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# "Do not check your Gemfile.lock into version control, since it enforces precision
11+
# that does not exist in the gem command, which is used to install gems in practice."
12+
# - https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
13+
Gemfile.lock
14+
*.gem

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source 'http://rubygems.org'
24

35
# Declare your gem's dependencies in zepto-rails.gemspec.

Gemfile.lock

Lines changed: 0 additions & 144 deletions
This file was deleted.

bin/release

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
VERSION=$1
4+
5+
# Use the latest dependencies for the new gem version.
6+
bundle
7+
8+
# Run all the rake task to ensure we're publishing a publishable gem.
9+
rake
10+
11+
# Update the gem version.
12+
printf "# frozen_string_literal: true\n\nmodule ZeptoForRails\n VERSION = \"$VERSION\"\nend\n" > ./lib/zepto_for_rails/version.rb
13+
git add lib/zepto_for_rails/version.rb
14+
git commit -m "Bump version for v$VERSION"
15+
git push origin main
16+
17+
# Tag the new gem version.
18+
git tag v$VERSION
19+
git push --tags
20+
21+
# Build the new gem and publish it to Rubygems.
22+
gem build zepto-for-rails.gemspec
23+
gem push "zepto-for-rails-$VERSION.gem" --host https://rubygems.org
24+
rm "zepto-for-rails-$VERSION.gem"

lib/zepto-for-rails.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/zepto/for/rails/engine.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/zepto/for/rails/version.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/zepto_for_rails.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
require 'zepto_for_rails/engine'
4+
require 'zepto_for_rails/version'
5+
6+
module ZeptoForRails
7+
end

lib/zepto_for_rails/engine.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
module ZeptoForRails
4+
class Engine < ::Rails::Engine
5+
end
6+
end

lib/zepto_for_rails/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
module ZeptoForRails
4+
VERSION = '0.3.11'
5+
end

0 commit comments

Comments
 (0)