proxy_rb 0.9.3 → 0.10.0

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: 9799738e3d8da056c25cf08f28647b281325c60b
4
- data.tar.gz: b360d5d1de85945d4a7294c0f8a2f85b67bfb82b
3
+ metadata.gz: 004473fd440c71427a7854da41f42c143e9d4e09
4
+ data.tar.gz: 3168f86f167e4916de745087d36aae3e0a2261d6
5
5
  SHA512:
6
- metadata.gz: 4e8d66e348e805b72dca73bed0e8fe03dda126140440a733777411823d18e78f781fb3176bdce419f0b1458b9031968d4928437579d3aecf5cf962a399c06fd2
7
- data.tar.gz: caaa78ed74e2ea1ce33cc3d9c8431717c64483463c335555fe8526cb4900b82e3dc4f36bbc49d8c34972b7af33d037f6586b254ac8476a4cf6dfd38d7eadfe34
6
+ metadata.gz: c68e7c17c32cc6303ee28110c1630a38c3655af74794d41685ca6eb67438d170453c733465cd0818d1f9530bea391580bb024606855662097145407298770194
7
+ data.tar.gz: c755357888a5e326878f76036526b423157cbcf37f1aa27a197abf7ff05192fabb802a6c3b697f5d9b34b0382f8a37e9780f35070fab4e46c62f0b0f35d2eee2
data/History.md CHANGED
@@ -4,6 +4,13 @@ Empty
4
4
 
5
5
  # RELEASED
6
6
 
7
+ ## [v0.10.0](https://github.com/fedux-org/proxy_rb/compare/v0.9.3...v0.10.0)
8
+
9
+ * Fixed dependency problem with `thor`
10
+ * Removed `rspec` dependency because otherwise we would also need to add a
11
+ `cucumbr` dependency. Now it's up to the user to add this to his/her
12
+ `Gemfile`.
13
+
7
14
  ## [v0.9.3](https://github.com/fedux-org/proxy_rb/compare/v0.9.2...v0.9.3)
8
15
 
9
16
  * Added best practises for usage of cucumber steps
data/README.md CHANGED
@@ -113,7 +113,7 @@ Create a file named `features/result.feature`.
113
113
  Those steps given by `proxy_rb` are considered to be used as low level steps
114
114
  which are called from more appropriate high level steps describing uses cases.
115
115
  Using them directly is more like unit testing. Please see
116
- [features/best_practises.feature](features/best_practises.feature] for some
116
+ [features/steps/best_practises.feature](features/steps/best_practises.feature) for some
117
117
  more examples.
118
118
 
119
119
 
@@ -50,8 +50,8 @@ When(/^I visit the following websites:$/) do |table|
50
50
  end
51
51
 
52
52
  Then(/the (?:last response|last requested page) should( not)? contain:/) do |not_expected, content|
53
- proxies.each do |proxy|
54
- visit websites.last, proxy
53
+ proxies.each do |proxy|
54
+ visit websites.last, proxy
55
55
 
56
56
  if not_expected
57
57
  expect(page).not_to have_content content
@@ -24,7 +24,7 @@ module ProxyRb
24
24
  end
25
25
 
26
26
  content = if File.exist? file
27
- %(gem 'proxy_rb', '~> #{ProxyRb::VERSION}')
27
+ %(gem 'proxy_rb', '~> #{ProxyRb::VERSION}'\n)
28
28
  else
29
29
  %(source 'https://rubygems.org'\ngem 'proxy_rb', '~> #{ProxyRb::VERSION}'\n)
30
30
  end
@@ -50,6 +50,10 @@ module ProxyRb
50
50
  end
51
51
  end
52
52
 
53
+ def add_gem
54
+ append_to_file 'Gemfile', %(gem 'rspec', '~>3.3'\n)
55
+ end
56
+
53
57
  def create_helper
54
58
  file = 'spec/spec_helper.rb'
55
59
  creator = if File.exist? file
@@ -91,6 +95,10 @@ module ProxyRb
91
95
  end
92
96
  end
93
97
 
98
+ def add_gem
99
+ append_to_file 'Gemfile', %(gem 'cucumber', '~>2.0'\n)
100
+ end
101
+
94
102
  def create_helper; end
95
103
 
96
104
  def create_support_file
@@ -124,14 +132,14 @@ module ProxyRb
124
132
 
125
133
  # Create files etc.
126
134
  def call(test_framework)
135
+ Initializers::CommonInitializer.start [], {}
136
+
127
137
  begin
128
138
  initializers.find { |i| i.match? test_framework }.start [], {}
129
139
  rescue ArgumentError => e
130
140
  $stderr.puts e.message
131
141
  exit 0
132
142
  end
133
-
134
- Initializers::CommonInitializer.start [], {}
135
143
  end
136
144
  end
137
145
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.9.3'
4
+ VERSION = '0.10.0'
5
5
  end
data/proxy_rb.gemspec CHANGED
@@ -27,8 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'addressable'
28
28
  spec.add_runtime_dependency 'contracts'
29
29
  spec.add_runtime_dependency 'excon'
30
-
31
- spec.add_runtime_dependency 'rspec', '~> 3.3'
30
+ spec.add_runtime_dependency 'thor'
32
31
 
33
32
  spec.required_ruby_version = '~> 2.3'
34
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,19 +95,19 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec
98
+ name: thor
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '3.3'
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '3.3'
110
+ version: '0'
111
111
  description:
112
112
  email:
113
113
  - dev@fedux.org