chemistrykit 1.0.0 → 1.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.
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "chemistrykit"
3
- s.version = "1.0.0"
3
+ s.version = "1.1.0"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Dave Haeffner", "Jason Wieringa"]
6
6
  s.email = ["dave@arrgyle.com", "jason@arrgyle.com"]
7
7
  s.homepage = "https://github.com/arrgyle/chemistrykit"
8
8
  s.summary = "A simple and opinionated web testing framework for Selenium that follows convention over configuration."
9
- s.description = "A major refactoring along with a revamping of the yaml config structure. See the github page for details."
9
+ s.description = "Added the ability to pass in environment variables using --params=THING1:value THING2:value"
10
10
  s.license = 'MIT'
11
11
 
12
12
  s.files = `git ls-files`.split($/)
@@ -22,9 +22,11 @@ module ChemistryKit
22
22
  subcommand "generate", Generate
23
23
 
24
24
  desc "brew", "Run ChemistryKit"
25
+ method_option :params, :type => :hash
25
26
  method_option :tag, :default => ['depth:shallow'], :type => :array
26
27
  def brew
27
28
  require 'chemistrykit/shared_context'
29
+ pass_params if options['params']
28
30
  load_page_objects
29
31
  set_logs_dir
30
32
  turn_stdout_stderr_on_off
@@ -36,6 +38,12 @@ module ChemistryKit
36
38
 
37
39
  protected
38
40
 
41
+ def pass_params
42
+ options['params'].each_pair do |key, value|
43
+ ENV[key] = value
44
+ end
45
+ end
46
+
39
47
  def load_page_objects
40
48
  Dir["#{Dir.getwd}/formulas/*.rb"].each {|file| require file }
41
49
  end
@@ -67,7 +75,7 @@ module ChemistryKit
67
75
  end
68
76
  end
69
77
 
70
- def rspec_config #These bits aren't working properly
78
+ def rspec_config #Some of these bits work and others don't
71
79
  RSpec.configure do |c|
72
80
  c.filter_run @tags[:filter] unless @tags[:filter].nil?
73
81
  c.filter_run_excluding @tags[:exclusion_filter] unless @tags[:exclusion_filter].nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chemistrykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-05 00:00:00.000000000 Z
13
+ date: 2013-06-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -172,8 +172,8 @@ dependencies:
172
172
  - - ~>
173
173
  - !ruby/object:Gem::Version
174
174
  version: 10.0.3
175
- description: A major refactoring along with a revamping of the yaml config structure.
176
- See the github page for details.
175
+ description: Added the ability to pass in environment variables using --params=THING1:value
176
+ THING2:value
177
177
  email:
178
178
  - dave@arrgyle.com
179
179
  - jason@arrgyle.com