methadone-rails 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- methadone-rails (0.0.1)
4
+ methadone-rails (0.1.0)
5
5
  methadone
6
6
  rails (~> 3.2.12)
7
7
 
@@ -6,4 +6,12 @@ class MethadoneGenerator < ::Rails::Generators::Base
6
6
  template 'command', "bin/#{command_name}"
7
7
  chmod "bin/#{command_name}", 0777
8
8
  end
9
+
10
+ def generate_features
11
+ template 'command.feature', "features/bin/#{command_name}.feature"
12
+ end
13
+
14
+ def generate_steps_file
15
+ template 'command_steps.rb', "features/step_definitions/#{command_name}_command_steps.rb"
16
+ end
9
17
  end
@@ -0,0 +1,6 @@
1
+ Feature: My bin command works
2
+ In order to get going on coding my awesome command
3
+ I want to have aruba and cucumber setup
4
+ So I don't have to do it myself
5
+
6
+ Scenario: The command runs
@@ -0,0 +1 @@
1
+ # Put your step definitions here
@@ -1,5 +1,5 @@
1
1
  module Methadone
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -24,5 +24,20 @@ describe MethadoneGenerator do
24
24
  expect(File.executable?(subject)).to be_true
25
25
  end
26
26
  end
27
+
28
+ describe "the cucumber feature" do
29
+ subject { file 'features/bin/command.feature' }
30
+
31
+ it { should exist }
32
+ it { should contain 'Feature: My bin command works' }
33
+ it { should contain 'Scenario: The command runs' }
34
+ end
35
+
36
+ describe "the cucumber steps" do
37
+ subject { file 'features/step_definitions/command_command_steps.rb' }
38
+
39
+ it { should exist }
40
+ it { should contain '# Put your step definitions here' }
41
+ end
27
42
  end
28
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methadone-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -90,6 +90,8 @@ files:
90
90
  - Rakefile
91
91
  - lib/generators/methadone_generator.rb
92
92
  - lib/generators/templates/command
93
+ - lib/generators/templates/command.feature
94
+ - lib/generators/templates/command_steps.rb
93
95
  - lib/methadone-rails.rb
94
96
  - lib/methadone/rails/helpers.rb
95
97
  - lib/methadone/rails/version.rb
@@ -111,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
113
  version: '0'
112
114
  segments:
113
115
  - 0
114
- hash: -2000605202361582106
116
+ hash: -3560692682163519946
115
117
  required_rubygems_version: !ruby/object:Gem::Requirement
116
118
  none: false
117
119
  requirements:
@@ -120,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
122
  version: '0'
121
123
  segments:
122
124
  - 0
123
- hash: -2000605202361582106
125
+ hash: -3560692682163519946
124
126
  requirements: []
125
127
  rubyforge_project:
126
128
  rubygems_version: 1.8.23