gyst 0.0.3 → 0.0.4

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.
@@ -1,4 +1,5 @@
1
- ## 0.0.3 (June 29, 2011) - Easy Install
1
+ ## 0.0.4 (July 05, 2011) - Easy Install (really)
2
+ ## 0.0.3 (June 29, 2011) - Easy Install (failed attempt)
2
3
 
3
4
  Features:
4
5
  - gem install gyst (no need for --no-wrappers arg)
data/README.md CHANGED
@@ -14,15 +14,8 @@ Install
14
14
  --------
15
15
  First, [some songs to test by][music] courtesy of [![portal2](http://www.thinkwithportals.com/images/favicon.ico)][music]
16
16
 
17
- **NOTE:** in order to use the bash scripts, you must use the `--no-wrappers` argument.
17
+ gem install gyst
18
18
 
19
- From rubygems:
20
- gem install gyst --no-wrappers
21
- Locally:
22
- gem install pkg/gyst-0.?.?.gem --no-wrappers
23
-
24
- Why do you have to add `-no-wrappers`? Because the scripts are bash scripts, not ruby scripts.
25
- We are stuck with this workaround until someone finds a better answer for this issue. This is the only reference I have found: <http://help.rubygems.org/discussions/suggestions/12-per-executable-wrappers>
26
19
 
27
20
  Dependencies
28
21
  ------------
@@ -123,7 +116,7 @@ Ruby 1.9.2 (p180)
123
116
  Contribute
124
117
  -----------
125
118
  Contributions and discussions are welcome.
126
- Feel free to add sugggestions and bugs to our [issues on github](https://github.com/mattscilipoti/gyst/issues).
119
+ Feel free to add suggestions and bugs to our [issues on github](https://github.com/mattscilipoti/gyst/issues).
127
120
 
128
121
  * Fork the project.
129
122
  * `bundle install`. Run all tests with `rakee`
@@ -137,11 +130,14 @@ Feel free to add sugggestions and bugs to our [issues on github](https://github.
137
130
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
138
131
  * Send me a pull request. Bonus points for topic branches.
139
132
 
140
- *NOTE*: when adding a new shell script
133
+ *When adding a new shell script*
141
134
 
142
- * add to git index
135
+ * add to git index (so gemspec can find it)
143
136
  * `rake build`
144
- * gem install pkg/gyst-0.0.?.gem --no-wrappers
137
+ * `rake install`
138
+
139
+ Do NOT use `rakee/raket` to run the features. This will set ENV vars,
140
+ borking the ENV var related tests.
145
141
 
146
142
  References
147
143
  -----------
data/Rakefile CHANGED
@@ -32,6 +32,7 @@ namespace :gyst do
32
32
  desc 'Display info related to gyst (env vars, etc)'
33
33
  task :info do
34
34
  env_vars = %w{
35
+ RAILS_ENV
35
36
  RUBY_GC_MALLOC_LIMIT
36
37
  RUBY_HEAP_FREE_MIN
37
38
  RUBY_HEAP_MIN_SLOTS
data/bin/rakee CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env ruby
2
2
 
3
- grease_your_suite rake $@
3
+ exec 'grease_your_suite', 'rake', *ARGV
4
4
 
data/bin/raket CHANGED
@@ -1,5 +1,4 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env ruby
2
2
  ## Hydra needs test env.
3
- echo "Loading test environment..."
4
- RAILS_ENV=test rakee $*
3
+ exec 'rakee', *ARGV << 'RAILS_ENV=test'
5
4
 
@@ -6,7 +6,7 @@ Feature: the grease_your_suite script sets configuration options for REE
6
6
 
7
7
 
8
8
  Scenario: running with no args
9
- When I successfully run `../../bin/grease_your_suite`
9
+ When I successfully run `grease_your_suite`
10
10
  # output includes message and output from `time`
11
11
  Then the output should contain:
12
12
  """
@@ -14,20 +14,12 @@ Feature: the grease_your_suite script sets configuration options for REE
14
14
  """
15
15
 
16
16
  Scenario: the script sets Environment Variables
17
- When I run `../../bin/grease_your_suite rake gyst:info`
18
- Then the output should contain:
19
- """
20
- {
21
- "RUBY_GC_MALLOC_LIMIT" => "1000000000",
22
- "RUBY_HEAP_FREE_MIN" => "500000111",
23
- "RUBY_HEAP_MIN_SLOTS" => "1000000",
24
- "RUBY_HEAP_SLOTS_INCREMENT" => "1000000",
25
- "RUBY_HEAP_SLOTS_GROWTH_FACTOR" => "1"
26
- }
27
- """
28
- Then the output should contain:
29
- """
30
- INFO: Configuring REE (re: grease_your_suite)
31
- """
17
+ When I run `grease_your_suite rake gyst:info`
18
+ Then the output should contain "INFO: Configuring REE (re: grease_your_suite)"
19
+ And the output should match /"RUBY_GC_MALLOC_LIMIT" => "1000000000"/
20
+ And the output should match /"RUBY_HEAP_FREE_MIN" => "500000111"/
21
+ And the output should match /"RUBY_HEAP_MIN_SLOTS" => "1000000"/
22
+ And the output should match /"RUBY_HEAP_SLOTS_INCREMENT" => "1000000"/
23
+ And the output should match /"RUBY_HEAP_SLOTS_GROWTH_FACTOR" => "1"/
32
24
  And the output should report timing
33
25
 
@@ -6,14 +6,10 @@ Feature: the rake tasks for gyst
6
6
 
7
7
  Scenario: gyst:info
8
8
  When I run `rake gyst:info`
9
- Then it should pass with:
10
- """
11
- {
12
- "RUBY_GC_MALLOC_LIMIT" => nil,
13
- "RUBY_HEAP_FREE_MIN" => nil,
14
- "RUBY_HEAP_MIN_SLOTS" => nil,
15
- "RUBY_HEAP_SLOTS_INCREMENT" => nil,
16
- "RUBY_HEAP_SLOTS_GROWTH_FACTOR" => nil
17
- }
18
- """
9
+ Then the output should match /"RAILS_ENV" => nil/
10
+ And the output should match /"RUBY_GC_MALLOC_LIMIT" => nil/
11
+ And the output should match /"RUBY_HEAP_FREE_MIN" => nil/
12
+ And the output should match /"RUBY_HEAP_MIN_SLOTS" => nil/
13
+ And the output should match /"RUBY_HEAP_SLOTS_INCREMENT" => nil/
14
+ And the output should match /"RUBY_HEAP_SLOTS_GROWTH_FACTOR" => nil/
19
15
 
@@ -4,8 +4,13 @@ Feature: raket
4
4
 
5
5
  Scenario: raket pass
6
6
  When I successfully run `raket pass`
7
- Then the output should contain "Loading test environment..."
8
- And the output should contain "Configuring REE"
9
- And the output should contain "PASS"
10
- And the output should report timing
7
+ Then the output should contain "Configuring REE"
8
+ And the output should contain "PASS"
9
+ And the output should report timing
10
+
11
+ Scenario: raket gyst:info
12
+ When I successfully run `raket gyst:info`
13
+ Then the output should match /"RAILS_ENV" => "test"/
14
+ And the output should match /"RUBY_GC_MALLOC_LIMIT" => "1000000000"/
15
+
11
16
 
@@ -1,3 +1,3 @@
1
1
  module Gyst
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gyst
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Scilipoti
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-29 00:00:00 Z
13
+ date: 2011-07-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aruba