swiss_knife 1.0.5 → 2.0.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: df717c4bc8d0ba025b84e4ca02b1dd01e3ea8c3b
4
+ data.tar.gz: 1cdfa97a6f65bcba50ce0f068289e2cfa77a7dcd
5
+ SHA512:
6
+ metadata.gz: a7370024be3d12c0e581214c2079555e5aa4a9ce3d4201953e3c67410f13b8136e76c77d26b354a0e647b26404ff81194e7840bfe7ab9a194d23d5771e0b48f2
7
+ data.tar.gz: c9ebb7065ace7ae98f12bf82c6ee4207f47332436a464aa917724102f9efc083c8a9dc840974303afcfce823f2ea2ae0c2d7318610d7689cb18cd9fd6dec3419
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source :rubygems
1
+ source "http://rubygems.org"
2
2
  gemspec
data/Gemfile.lock CHANGED
@@ -1,119 +1,107 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swiss_knife (1.0.5)
5
- rails (>= 3.0.0)
4
+ swiss_knife (2.0.0)
5
+ rails
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actionmailer (3.1.1)
11
- actionpack (= 3.1.1)
12
- mail (~> 2.3.0)
13
- actionpack (3.1.1)
14
- activemodel (= 3.1.1)
15
- activesupport (= 3.1.1)
16
- builder (~> 3.0.0)
10
+ actionmailer (4.0.0)
11
+ actionpack (= 4.0.0)
12
+ mail (~> 2.5.3)
13
+ actionpack (4.0.0)
14
+ activesupport (= 4.0.0)
15
+ builder (~> 3.1.0)
17
16
  erubis (~> 2.7.0)
18
- i18n (~> 0.6)
19
- rack (~> 1.3.2)
20
- rack-cache (~> 1.1)
21
- rack-mount (~> 0.8.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.0.2)
24
- activemodel (3.1.1)
25
- activesupport (= 3.1.1)
26
- builder (~> 3.0.0)
27
- i18n (~> 0.6)
28
- activerecord (3.1.1)
29
- activemodel (= 3.1.1)
30
- activesupport (= 3.1.1)
31
- arel (~> 2.2.1)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.1.1)
34
- activemodel (= 3.1.1)
35
- activesupport (= 3.1.1)
36
- activesupport (3.1.1)
37
- multi_json (~> 1.0)
38
- arel (2.2.1)
39
- builder (3.0.0)
40
- coderay (0.9.8)
41
- diff-lcs (1.1.3)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.0)
20
+ activesupport (= 4.0.0)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.0)
23
+ activemodel (= 4.0.0)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.0)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activesupport (4.0.0)
29
+ i18n (~> 0.6, >= 0.6.4)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.37)
34
+ arel (4.0.0)
35
+ atomic (1.1.10)
36
+ builder (3.1.4)
37
+ coderay (1.0.9)
38
+ diff-lcs (1.2.4)
42
39
  erubis (2.7.0)
43
40
  fakeweb (1.3.0)
44
- hike (1.2.1)
45
- i18n (0.6.0)
46
- json (1.6.1)
47
- mail (2.3.0)
48
- i18n (>= 0.4.0)
41
+ hike (1.2.3)
42
+ i18n (0.6.4)
43
+ mail (2.5.4)
49
44
  mime-types (~> 1.16)
50
45
  treetop (~> 1.4.8)
51
- method_source (0.6.7)
52
- ruby_parser (>= 2.3.1)
53
- mime-types (1.17.2)
54
- multi_json (1.0.3)
55
- nokogiri (1.5.0)
46
+ method_source (0.8.1)
47
+ mime-types (1.23)
48
+ mini_portile (0.5.1)
49
+ minitest (4.7.5)
50
+ multi_json (1.7.7)
51
+ nokogiri (1.6.0)
52
+ mini_portile (~> 0.5.0)
56
53
  polyglot (0.3.3)
57
- pry (0.9.7.4)
58
- coderay (~> 0.9.8)
59
- method_source (~> 0.6.7)
60
- ruby_parser (>= 2.3.1)
61
- slop (~> 2.1.0)
62
- rack (1.3.5)
63
- rack-cache (1.1)
64
- rack (>= 0.4)
65
- rack-mount (0.8.3)
66
- rack (>= 1.0.0)
67
- rack-ssl (1.3.2)
68
- rack
69
- rack-test (0.6.1)
54
+ pry (0.9.12.2)
55
+ coderay (~> 1.0.5)
56
+ method_source (~> 0.8)
57
+ slop (~> 3.4)
58
+ rack (1.5.2)
59
+ rack-test (0.6.2)
70
60
  rack (>= 1.0)
71
- rails (3.1.1)
72
- actionmailer (= 3.1.1)
73
- actionpack (= 3.1.1)
74
- activerecord (= 3.1.1)
75
- activeresource (= 3.1.1)
76
- activesupport (= 3.1.1)
77
- bundler (~> 1.0)
78
- railties (= 3.1.1)
79
- railties (3.1.1)
80
- actionpack (= 3.1.1)
81
- activesupport (= 3.1.1)
82
- rack-ssl (~> 1.3.2)
61
+ rails (4.0.0)
62
+ actionmailer (= 4.0.0)
63
+ actionpack (= 4.0.0)
64
+ activerecord (= 4.0.0)
65
+ activesupport (= 4.0.0)
66
+ bundler (>= 1.3.0, < 2.0)
67
+ railties (= 4.0.0)
68
+ sprockets-rails (~> 2.0.0)
69
+ railties (4.0.0)
70
+ actionpack (= 4.0.0)
71
+ activesupport (= 4.0.0)
83
72
  rake (>= 0.8.7)
84
- rdoc (~> 3.4)
85
- thor (~> 0.14.6)
86
- rake (0.9.2.2)
87
- rdoc (3.11)
88
- json (~> 1.4)
89
- rspec (2.7.0)
90
- rspec-core (~> 2.7.0)
91
- rspec-expectations (~> 2.7.0)
92
- rspec-mocks (~> 2.7.0)
93
- rspec-core (2.7.1)
94
- rspec-expectations (2.7.0)
95
- diff-lcs (~> 1.1.2)
96
- rspec-mocks (2.7.0)
97
- rspec-rails (2.7.0)
98
- actionpack (~> 3.0)
99
- activesupport (~> 3.0)
100
- railties (~> 3.0)
101
- rspec (~> 2.7.0)
102
- ruby_parser (2.3.1)
103
- sexp_processor (~> 3.0)
104
- sexp_processor (3.0.8)
105
- slop (2.1.0)
106
- sprockets (2.0.3)
73
+ thor (>= 0.18.1, < 2.0)
74
+ rake (10.1.0)
75
+ rspec-core (2.14.2)
76
+ rspec-expectations (2.14.0)
77
+ diff-lcs (>= 1.1.3, < 2.0)
78
+ rspec-mocks (2.14.1)
79
+ rspec-rails (2.14.0)
80
+ actionpack (>= 3.0)
81
+ activesupport (>= 3.0)
82
+ railties (>= 3.0)
83
+ rspec-core (~> 2.14.0)
84
+ rspec-expectations (~> 2.14.0)
85
+ rspec-mocks (~> 2.14.0)
86
+ slop (3.4.5)
87
+ sprockets (2.10.0)
107
88
  hike (~> 1.2)
89
+ multi_json (~> 1.0)
108
90
  rack (~> 1.0)
109
91
  tilt (~> 1.1, != 1.3.0)
110
- sqlite3 (1.3.4)
111
- thor (0.14.6)
112
- tilt (1.3.3)
113
- treetop (1.4.10)
92
+ sprockets-rails (2.0.0)
93
+ actionpack (>= 3.0)
94
+ activesupport (>= 3.0)
95
+ sprockets (~> 2.8)
96
+ sqlite3 (1.3.7)
97
+ thor (0.18.1)
98
+ thread_safe (0.1.0)
99
+ atomic
100
+ tilt (1.4.1)
101
+ treetop (1.4.14)
114
102
  polyglot
115
103
  polyglot (>= 0.3.1)
116
- tzinfo (0.3.31)
104
+ tzinfo (0.3.37)
117
105
 
118
106
  PLATFORMS
119
107
  ruby
@@ -122,6 +110,7 @@ DEPENDENCIES
122
110
  fakeweb
123
111
  nokogiri
124
112
  pry
125
- rspec-rails (~> 2.7)
113
+ rake
114
+ rspec-rails
126
115
  sqlite3
127
116
  swiss_knife!
@@ -135,23 +135,6 @@ module SwissKnife
135
135
  content_tag(tag, capture(&block), options)
136
136
  end
137
137
 
138
- # Create a encrypted mailto link.
139
- # <b>THIS API IS NOT RAILS COMPLIANT.</b>
140
- #
141
- # mail_to "john@doe.com"
142
- # mail_to "john@doe.com", "Contact me"
143
- #
144
- def mail_to(email, label = nil)
145
- encrypt = proc do |text|
146
- text.to_enum(:each_byte).collect {|c| sprintf("&#%d;", c) }.join
147
- end
148
-
149
- url = encrypt.call("mailto:#{email}").html_safe
150
- label ||= encrypt.call(email).html_safe
151
-
152
- link_to(label, url)
153
- end
154
-
155
138
  def javascript_includes(*args)
156
139
  options = args.extract_options!
157
140
 
@@ -272,16 +255,16 @@ module SwissKnife
272
255
 
273
256
  buffer.html_safe
274
257
  end
275
-
258
+
276
259
  private
277
-
260
+
278
261
  def controller_name
279
262
  unless @controller_name
280
263
  @controller_name = controller.class.name.underscore
281
264
  @controller_name.gsub!(/\//, "_")
282
265
  @controller_name.gsub!(/_controller$/, "")
283
266
  end
284
-
267
+
285
268
  @controller_name
286
269
  end
287
270
  end
@@ -1,42 +1,57 @@
1
- RSpec::Matchers.define :allow do |*values|
2
- @failed = []
3
- @values = values
4
-
5
- match_for_should do |record|
6
- @record = record
7
- matches_against?(false)
8
- end
9
-
10
- match_for_should_not do |record|
11
- @record = record
12
- matches_against?(true)
13
- end
14
-
15
- def matches_against?(compare)
16
- raise "The allow matcher requires an attribute; use subject.should allow(*values).as(attribute)" unless @attribute
17
-
18
- @values.each do |value|
19
- @record.__send__("#{@attribute}=", value)
20
- @record.valid?
21
- @failed << value if @record.errors[@attribute].empty? == compare
1
+ module SwissKnife
2
+ module RSpec
3
+ module Matchers
4
+ def allow(*values)
5
+ Allow.new(values)
6
+ end
7
+
8
+ class Allow
9
+ attr_accessor :values, :record, :failed, :attribute
10
+
11
+ def initialize(values)
12
+ @failed = []
13
+ @values = values
14
+ end
15
+
16
+ def matches?(record)
17
+ @record = record
18
+ matches_against?(false)
19
+ end
20
+
21
+ def does_not_match?(record)
22
+ @record = record
23
+ matches_against?(true)
24
+ end
25
+
26
+ def description
27
+ "allow #{values.inspect} as #{attribute}"
28
+ end
29
+
30
+ def failure_message
31
+ "expected #{record.inspect} to allow each of #{values.inspect} as #{attribute.inspect} value (didn't accept #{failed.inspect})"
32
+ end
33
+
34
+ def negative_failure_message
35
+ "expected #{record.inspect} to reject each of #{values.inspect} as #{attribute.inspect} value (accepted #{failed.inspect})"
36
+ end
37
+
38
+ def as(attribute)
39
+ @attribute = attribute
40
+ self
41
+ end
42
+
43
+ def matches_against?(compare)
44
+ raise "The allow matcher requires an attribute; use subject.should allow(*values).as(attribute)" unless attribute
45
+
46
+ values.each do |value|
47
+ record.__send__("#{attribute}=", value)
48
+ record.valid?
49
+ failed << value if record.errors[attribute].empty? == compare
50
+ end
51
+
52
+ failed.empty?
53
+ end
54
+ end
22
55
  end
23
-
24
- @failed.empty?
25
- end
26
-
27
- failure_message_for_should do |actual|
28
- "expected #{@record.inspect} to allow each of #{@values.inspect} as #{@attribute.inspect} value (didn't accept #{@failed.inspect})"
29
- end
30
-
31
- failure_message_for_should_not do |actual|
32
- "expected #{@record.inspect} to reject each of #{@values.inspect} as #{@attribute.inspect} value (accepted #{@failed.inspect})"
33
- end
34
-
35
- chain :as do |attribute|
36
- @attribute = attribute
37
- end
38
-
39
- description do
40
- "allow #{values.inspect} as #{@attribute}"
41
56
  end
42
57
  end
@@ -0,0 +1,36 @@
1
+ module SwissKnife
2
+ module RSpec
3
+ module Matchers
4
+ def have_error_on(attribute)
5
+ HaveErrorOn.new(attribute)
6
+ end
7
+
8
+ alias_method :have_errors_on, :have_error_on
9
+
10
+ class HaveErrorOn
11
+ attr_accessor :attribute, :subject
12
+
13
+ def initialize(attribute)
14
+ @attribute = attribute
15
+ end
16
+
17
+ def matches?(subject)
18
+ @subject = subject
19
+ subject.errors[attribute.to_sym].any?
20
+ end
21
+
22
+ def description
23
+ "have errors on #{attribute.inspect}"
24
+ end
25
+
26
+ def failure_message
27
+ "expected #{subject.inspect} to have errors on #{attribute.inspect}"
28
+ end
29
+
30
+ def negative_failure_message
31
+ "expected #{subject.inspect} to have no errors on #{attribute.inspect}"
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -1,6 +1,7 @@
1
1
  require "swiss_knife/rspec/have_tag"
2
2
  require "swiss_knife/rspec/have_text"
3
3
  require "swiss_knife/rspec/allow"
4
+ require "swiss_knife/rspec/have_error_on"
4
5
 
5
6
  RSpec.configure do |config|
6
7
  config.include(SwissKnife::RSpec::Matchers)
@@ -1,8 +1,8 @@
1
1
  module SwissKnife
2
2
  module Version
3
- MAJOR = 1
3
+ MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 5
5
+ PATCH = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -14,6 +14,7 @@ module SwissKnife
14
14
  class Application < Rails::Application
15
15
  config.root = File.dirname(__FILE__) + "/.."
16
16
  config.active_support.deprecation = :log
17
+ config.eager_load = false
17
18
  end
18
19
  end
19
20
 
@@ -1,31 +1,40 @@
1
- require "spec_helper"
1
+ require "swiss_knife/rspec/allow"
2
+ require "active_record"
3
+
4
+ ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
5
+
6
+ require File.expand_path("../../../schema", __FILE__)
2
7
 
3
8
  describe "allow matcher" do
9
+ include SwissKnife::RSpec::Matchers
10
+
4
11
  it "allows blank values" do
5
12
  klass = Class.new(ActiveRecord::Base) do
6
- table_name "users"
13
+ self.table_name = "users"
7
14
  end
8
15
 
9
16
  record = klass.new
10
- record.should allow_values(nil, "").as(:name)
17
+ record.should allow(nil, "").as(:name)
11
18
  end
12
19
 
13
20
  it "requires name to be set" do
14
21
  klass = Class.new(ActiveRecord::Base) do
15
- table_name "users"
22
+ self.table_name = "users"
16
23
  validates_presence_of :name
17
24
  end
18
25
 
26
+ klass.stub name: "User"
27
+
19
28
  record = klass.new
20
- record.should_not allow_values(nil, "").as(:name)
29
+ record.should_not allow(nil, "").as(:name)
21
30
  end
22
31
 
23
32
  it "allows values" do
24
33
  klass = Class.new(ActiveRecord::Base) do
25
- table_name "users"
34
+ self.table_name = "users"
26
35
  end
27
36
 
28
37
  record = klass.new
29
- record.should allow_values("John Doe", "Jane Doe").as(:name)
38
+ record.should allow("John Doe", "Jane Doe").as(:name)
30
39
  end
31
40
  end
@@ -0,0 +1,36 @@
1
+ require "swiss_knife/rspec/have_error_on"
2
+
3
+ describe "have_error_on matcher" do
4
+ include SwissKnife::RSpec::Matchers
5
+
6
+ it "detects errors" do
7
+ record = mock(:errors => {:name => ["some error"]})
8
+ record.should have_error_on(:name)
9
+ end
10
+
11
+ it "detects when record has no errors" do
12
+ record = mock(:errors => {:name => []})
13
+ record.should_not have_error_on(:name)
14
+ end
15
+
16
+ it "detects errors with alias" do
17
+ record = mock(:errors => {:name => [1,2]})
18
+ record.should have_errors_on(:name)
19
+ end
20
+
21
+ it "throws message for positive failure" do
22
+ record = mock(:errors => {:name => []})
23
+
24
+ expect {
25
+ record.should have_errors_on(:name)
26
+ }.to raise_error(/to have errors on :name/)
27
+ end
28
+
29
+ it "throws message for negative failure" do
30
+ record = mock(:errors => {:name => [1]})
31
+
32
+ expect {
33
+ record.should_not have_errors_on(:name)
34
+ }.to raise_error(/to have no errors on :name/)
35
+ end
36
+ end
@@ -1,6 +1,8 @@
1
- require "spec_helper"
1
+ require "swiss_knife/rspec/have_text"
2
+
3
+ describe "have_text matcher" do
4
+ include SwissKnife::RSpec::Matchers
2
5
 
3
- describe SwissKnife::RSpec::Matchers::HaveText do
4
6
  it "should match string" do
5
7
  "abc".should have_text("abc")
6
8
  end
data/swiss_knife.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Nando Vieira"]
10
10
  s.email = ["fnando.vieira@gmail.com"]
11
11
  s.homepage = "http://rubygems.org/gems/swiss_knife"
12
- s.summary = "Several helpers for Rails 3"
12
+ s.summary = "Several helpers for Rails"
13
13
  s.description = s.summary
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
@@ -17,10 +17,11 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_dependency "rails", ">= 3.0.0"
21
- s.add_development_dependency "rspec-rails", "~> 2.7"
20
+ s.add_dependency "rails"
21
+ s.add_development_dependency "rspec-rails"
22
22
  s.add_development_dependency "nokogiri"
23
23
  s.add_development_dependency "fakeweb"
24
24
  s.add_development_dependency "sqlite3"
25
25
  s.add_development_dependency "pry"
26
+ s.add_development_dependency "rake"
26
27
  end
metadata CHANGED
@@ -1,83 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiss_knife
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nando Vieira
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-11-17 00:00:00.000000000 Z
11
+ date: 2013-07-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
- requirement: &70319037970000 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 3.0.0
19
+ version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70319037970000
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rspec-rails
27
- requirement: &70319037980320 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
- version: '2.7'
33
+ version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70319037980320
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: nokogiri
38
- requirement: &70319037977820 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70319037977820
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: fakeweb
49
- requirement: &70319037992360 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70319037992360
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: sqlite3
60
- requirement: &70319037989720 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - '>='
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70319037989720
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: pry
71
- requirement: &70319037986480 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - '>='
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *70319037986480
80
- description: Several helpers for Rails 3
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Several helpers for Rails
81
112
  email:
82
113
  - fnando.vieira@gmail.com
83
114
  executables: []
@@ -103,6 +134,7 @@ files:
103
134
  - lib/swiss_knife/rake_tasks.rb
104
135
  - lib/swiss_knife/rspec.rb
105
136
  - lib/swiss_knife/rspec/allow.rb
137
+ - lib/swiss_knife/rspec/have_error_on.rb
106
138
  - lib/swiss_knife/rspec/have_tag.rb
107
139
  - lib/swiss_knife/rspec/have_text.rb
108
140
  - lib/swiss_knife/smusher_it.rb
@@ -140,67 +172,30 @@ files:
140
172
  - spec/swiss_knife/jquery_spec.rb
141
173
  - spec/swiss_knife/jquery_ujs_spec.rb
142
174
  - spec/swiss_knife/rspec/allow_spec.rb
175
+ - spec/swiss_knife/rspec/have_error_on_spec.rb
143
176
  - spec/swiss_knife/rspec/have_text_spec.rb
144
177
  - swiss_knife.gemspec
145
178
  homepage: http://rubygems.org/gems/swiss_knife
146
179
  licenses: []
180
+ metadata: {}
147
181
  post_install_message:
148
182
  rdoc_options: []
149
183
  require_paths:
150
184
  - lib
151
185
  required_ruby_version: !ruby/object:Gem::Requirement
152
- none: false
153
186
  requirements:
154
- - - ! '>='
187
+ - - '>='
155
188
  - !ruby/object:Gem::Version
156
189
  version: '0'
157
- segments:
158
- - 0
159
- hash: -4097759454801460063
160
190
  required_rubygems_version: !ruby/object:Gem::Requirement
161
- none: false
162
191
  requirements:
163
- - - ! '>='
192
+ - - '>='
164
193
  - !ruby/object:Gem::Version
165
194
  version: '0'
166
- segments:
167
- - 0
168
- hash: -4097759454801460063
169
195
  requirements: []
170
196
  rubyforge_project:
171
- rubygems_version: 1.8.11
197
+ rubygems_version: 2.0.3
172
198
  signing_key:
173
- specification_version: 3
174
- summary: Several helpers for Rails 3
175
- test_files:
176
- - spec/controllers/application_controller_spec.rb
177
- - spec/helpers/helpers_spec.rb
178
- - spec/resources/assets.yml
179
- - spec/resources/assets/javascripts/application.js
180
- - spec/resources/assets/javascripts/jquery.js
181
- - spec/resources/assets/javascripts/rails.js
182
- - spec/resources/assets/stylesheets/main.css
183
- - spec/resources/assets/stylesheets/reset.css
184
- - spec/resources/assets/stylesheets/shared.css
185
- - spec/resources/stylesheets/_shared.less
186
- - spec/resources/stylesheets/main.less
187
- - spec/resources/stylesheets/reset.css
188
- - spec/resources/stylesheets/ui/tab.css
189
- - spec/resources/stylesheets/ui/window.less
190
- - spec/schema.rb
191
- - spec/spec_helper.rb
192
- - spec/support/app/controllers/application_controller.rb
193
- - spec/support/config/boot.rb
194
- - spec/support/config/database.yml
195
- - spec/support/config/locales/en.yml
196
- - spec/support/public/javascripts/.gitkeep
197
- - spec/support/public/stylesheets/.gitkeep
198
- - spec/support/rspec/remote_file_shared.rb
199
- - spec/support/tmp/.gitkeep
200
- - spec/swiss_knife/assets_spec.rb
201
- - spec/swiss_knife/dispatcher_js_spec.rb
202
- - spec/swiss_knife/i18n_js_spec.rb
203
- - spec/swiss_knife/jquery_spec.rb
204
- - spec/swiss_knife/jquery_ujs_spec.rb
205
- - spec/swiss_knife/rspec/allow_spec.rb
206
- - spec/swiss_knife/rspec/have_text_spec.rb
199
+ specification_version: 4
200
+ summary: Several helpers for Rails
201
+ test_files: []