formnestic 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -23,5 +23,6 @@ group :test do
23
23
  end
24
24
 
25
25
  gem 'actionpack', '>= 3.2.13'
26
- gem 'formtastic', "~> 2.2.1"
26
+ gem 'formtastic', ">= 2.2.1"
27
+ gem 'coveralls', require: false
27
28
  # gem 'formtastic', path: '../formtastic'
data/Gemfile.lock CHANGED
@@ -19,9 +19,16 @@ GEM
19
19
  multi_json (~> 1.0)
20
20
  addressable (2.3.6)
21
21
  builder (3.0.4)
22
+ coveralls (0.7.0)
23
+ multi_json (~> 1.3)
24
+ rest-client
25
+ simplecov (>= 0.7)
26
+ term-ansicolor
27
+ thor
22
28
  descendants_tracker (0.0.4)
23
29
  thread_safe (~> 0.3, >= 0.3.1)
24
30
  diff-lcs (1.2.5)
31
+ docile (1.1.5)
25
32
  erubis (2.7.0)
26
33
  faraday (0.9.0)
27
34
  multipart-post (>= 1.2, < 3)
@@ -52,6 +59,7 @@ GEM
52
59
  journey (1.0.4)
53
60
  json (1.8.1)
54
61
  jwt (1.0.0)
62
+ mime-types (2.3)
55
63
  mini_portile (0.6.0)
56
64
  multi_json (1.10.1)
57
65
  multi_xml (0.5.5)
@@ -81,6 +89,8 @@ GEM
81
89
  rake (10.3.2)
82
90
  rdoc (3.12.2)
83
91
  json (~> 1.4)
92
+ rest-client (1.6.7)
93
+ mime-types (>= 1.16)
84
94
  rspec-core (2.14.8)
85
95
  rspec-expectations (2.14.5)
86
96
  diff-lcs (>= 1.1.3, < 2.0)
@@ -102,15 +112,23 @@ GEM
102
112
  shoulda-context (1.2.1)
103
113
  shoulda-matchers (2.6.1)
104
114
  activesupport (>= 3.0.0)
115
+ simplecov (0.8.2)
116
+ docile (~> 1.1.0)
117
+ multi_json
118
+ simplecov-html (~> 0.8.0)
119
+ simplecov-html (0.8.0)
105
120
  spork (0.9.2)
106
121
  sprockets (2.2.2)
107
122
  hike (~> 1.2)
108
123
  multi_json (~> 1.0)
109
124
  rack (~> 1.0)
110
125
  tilt (~> 1.1, != 1.3.0)
126
+ term-ansicolor (1.3.0)
127
+ tins (~> 1.0)
111
128
  thor (0.19.1)
112
129
  thread_safe (0.3.4)
113
130
  tilt (1.4.1)
131
+ tins (1.3.0)
114
132
  tzinfo (1.2.1)
115
133
  thread_safe (~> 0.1)
116
134
  watchr (0.7)
@@ -121,7 +139,8 @@ PLATFORMS
121
139
  DEPENDENCIES
122
140
  actionpack (>= 3.2.13)
123
141
  bundler (~> 1.0)
124
- formtastic (~> 2.2.1)
142
+ coveralls
143
+ formtastic (>= 2.2.1)
125
144
  jeweler (~> 2.0.1)
126
145
  rake
127
146
  rdoc (~> 3.4)
data/README.markdown CHANGED
@@ -2,12 +2,13 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/jameshuynh/formnestic.svg?branch=master)](https://travis-ci.org/jameshuynh/formnestic)
4
4
  [![Code Climate](https://codeclimate.com/github/jameshuynh/formnestic.png)](https://codeclimate.com/github/jameshuynh/formnestic)
5
+ [![Gem Version](https://badge.fury.io/rb/formnestic.svg)](http://badge.fury.io/rb/formnestic)
5
6
 
6
7
  An extension of famous [Formtastic Form Builder](https://github.com/justinfrench/formtastic) to make building nested and association form with nested model addable and removable ability extremely easy and simple.
7
8
 
8
9
  ### Compatibility
9
10
 
10
- - Formnestic gem requires ``formtastic`` gem version ``2.2.1``
11
+ - Formnestic gem requires ``formtastic`` gem version ``>= 2.2.1``
11
12
  - Formnestic gem is Rails 3 and Rails 4 compatible
12
13
 
13
14
  ### Installation
@@ -15,7 +16,7 @@ An extension of famous [Formtastic Form Builder](https://github.com/justinfrench
15
16
  Add Formnestic to your Gemfile and run ``bundle install``:
16
17
 
17
18
  ```ruby
18
- gem "formnestic", '~> 1.0.1'
19
+ gem "formnestic", '~> 1.0.2'
19
20
  ```
20
21
 
21
22
  then run the installation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -74,7 +74,7 @@ var Formnestic = {
74
74
 
75
75
  addOddAndEventClassForListContainer: function(listContainer) {
76
76
  var counter = 0;
77
- listContainer.children().each(function() {
77
+ listContainer.children("fieldset").each(function() {
78
78
  var dom = $(this);
79
79
  if(!dom.hasClass("formnestic-deleted-row")) {
80
80
  dom.removeClass("formnestic-odd-row formnestic-even-row").addClass(counter % 2 === 0 ? "formnestic-even-row" : "formnestic-odd-row");
data/formnestic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "formnestic"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James"]
12
- s.date = "2014-06-20"
12
+ s.date = "2014-06-23"
13
13
  s.description = "An extension of famous Formtastic Form Builder to make building nested and association form with nested model addable and removable ability extremely easy and simple"
14
14
  s.email = "james@rubify.com"
15
15
  s.extra_rdoc_files = [
@@ -72,7 +72,8 @@ Gem::Specification.new do |s|
72
72
 
73
73
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
74
  s.add_runtime_dependency(%q<actionpack>, [">= 3.2.13"])
75
- s.add_runtime_dependency(%q<formtastic>, ["~> 2.2.1"])
75
+ s.add_runtime_dependency(%q<formtastic>, [">= 2.2.1"])
76
+ s.add_runtime_dependency(%q<coveralls>, [">= 0"])
76
77
  s.add_development_dependency(%q<shoulda>, [">= 0"])
77
78
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
78
79
  s.add_development_dependency(%q<rdoc>, ["~> 3.4"])
@@ -84,7 +85,8 @@ Gem::Specification.new do |s|
84
85
  s.add_development_dependency(%q<watchr>, [">= 0"])
85
86
  else
86
87
  s.add_dependency(%q<actionpack>, [">= 3.2.13"])
87
- s.add_dependency(%q<formtastic>, ["~> 2.2.1"])
88
+ s.add_dependency(%q<formtastic>, [">= 2.2.1"])
89
+ s.add_dependency(%q<coveralls>, [">= 0"])
88
90
  s.add_dependency(%q<shoulda>, [">= 0"])
89
91
  s.add_dependency(%q<bundler>, ["~> 1.0"])
90
92
  s.add_dependency(%q<rdoc>, ["~> 3.4"])
@@ -97,7 +99,8 @@ Gem::Specification.new do |s|
97
99
  end
98
100
  else
99
101
  s.add_dependency(%q<actionpack>, [">= 3.2.13"])
100
- s.add_dependency(%q<formtastic>, ["~> 2.2.1"])
102
+ s.add_dependency(%q<formtastic>, [">= 2.2.1"])
103
+ s.add_dependency(%q<coveralls>, [">= 0"])
101
104
  s.add_dependency(%q<shoulda>, [">= 0"])
102
105
  s.add_dependency(%q<bundler>, ["~> 1.0"])
103
106
  s.add_dependency(%q<rdoc>, ["~> 3.4"])
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
4
7
  require 'spork'
5
8
  require 'bundler/setup'
6
9
  require 'active_support'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formnestic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2014-06-20 00:00:00.000000000 Z
12
+ date: 2014-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: 2.2.1
38
38
  type: :runtime
@@ -40,9 +40,25 @@ dependencies:
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ~>
43
+ - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.2.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: coveralls
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: shoulda
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +271,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
255
271
  version: '0'
256
272
  segments:
257
273
  - 0
258
- hash: 3747089579446336106
274
+ hash: -4363090041359353680
259
275
  required_rubygems_version: !ruby/object:Gem::Requirement
260
276
  none: false
261
277
  requirements: