orientea 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f7444f330d643a8ff54e89832df7875d267752a
4
- data.tar.gz: e305376f6c3eb7e9ba3c854dffa29d843b3d0be8
3
+ metadata.gz: d8ec3ef10bf54582458d8dc0c731e3afd67d9d2e
4
+ data.tar.gz: d849a647057e42253bf3d156d4377d8f6d619998
5
5
  SHA512:
6
- metadata.gz: 5a12228ac3067c0d500e5e66d7799101c6f29ea66754c29afba79d7d6d73b88866eb16c63b95f4dd3c594f828646ced4b715a4d7df3e8fbb2d8965ccb6b17a8a
7
- data.tar.gz: 06c561db68f82b720d8849876758ca49c68970633a3e6064ef5554b7a8ab790775d9fb4e95c20ad6983a267a9aeb8198353ee654c5d692aca25c59aa57318168
6
+ metadata.gz: cb2b5b25176468cc72d6fa753d63e0a63e0d0328c91eddbbbaa9c3a4d0ab69588fd5fd1a73611992922119a10e9ad335f3cbd7b4ed8d8955daf7d3e7e34d6579
7
+ data.tar.gz: 787f77ac7dde5e02212a1eb441e86506406fee4683c5c89dfaa5d486c2ca0ddf4c64e4c2d911dc51d2235b02dd4f771ba79deaa8c0b35a03ed666bb0397fb76e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -0,0 +1 @@
1
+ rails generate command
@@ -0,0 +1,7 @@
1
+ class CommandGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('./templates', __FILE__)
3
+ desc "rails g orientea:command"
4
+ def create_migration
5
+ migration_template 'create_command.rb', 'db/migrate/create_command_table.rb'
6
+ end
7
+ end
@@ -1,5 +1,6 @@
1
- class CommandGenerator < Rails::Generators::NamedBase
2
- source_root File.expand_path('../templates', __FILE__)
1
+ class CommandGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('./templates', __FILE__)
3
+ desc "rails g orientea:command"
3
4
  def create_migration
4
5
  migration_template 'create_command.rb', 'db/migrate/create_command_table.rb'
5
6
  end
data/orientea.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "orientea"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vincent Zhu"]
@@ -31,8 +31,10 @@ Gem::Specification.new do |s|
31
31
  "lib/orientea/changing_command.rb",
32
32
  "lib/orientea/command.rb",
33
33
  "lib/orientea/creating_command.rb",
34
+ "lib/orientea/generators/command/USAGE",
35
+ "lib/orientea/generators/command/command_generator.rb",
36
+ "lib/orientea/generators/command/templates/create_command.rb",
34
37
  "lib/orientea/generators/command_generator.rb",
35
- "lib/orientea/templates/create_command.rb",
36
38
  "orientea.gemspec",
37
39
  "spec/changing_command_spec.rb",
38
40
  "spec/creating_command_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Zhu
@@ -158,8 +158,10 @@ files:
158
158
  - lib/orientea/changing_command.rb
159
159
  - lib/orientea/command.rb
160
160
  - lib/orientea/creating_command.rb
161
+ - lib/orientea/generators/command/USAGE
162
+ - lib/orientea/generators/command/command_generator.rb
163
+ - lib/orientea/generators/command/templates/create_command.rb
161
164
  - lib/orientea/generators/command_generator.rb
162
- - lib/orientea/templates/create_command.rb
163
165
  - orientea.gemspec
164
166
  - spec/changing_command_spec.rb
165
167
  - spec/creating_command_spec.rb