cowtech-js-rails 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = cowtech-js-rails
2
+
3
+ A set of Javascript libraries.
4
+ http://github.com/ShogunPanda/cowtech-js-rails
5
+
6
+ == Contributing to cowtech-js-rails
7
+
8
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
9
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
10
+ * Fork the project
11
+ * Start a feature/bugfix branch
12
+ * Commit and push until you are happy with your contribution
13
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
14
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
15
+
16
+ == Copyright
17
+
18
+ Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
19
+ Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
data/lib/cowtech_js.rb CHANGED
@@ -4,7 +4,6 @@
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
7
-
8
7
  module CowtechJs
9
8
  class Engine < Rails::Engine
10
9
  end
@@ -8,8 +8,8 @@ module CowtechJS
8
8
  module Version
9
9
  MAJOR = 1
10
10
  MINOR = 2
11
- PATCH = 0
11
+ PATCH = 2
12
12
 
13
- STRING = [MAJOR, MINOR, PATCH].compact.join('.')
13
+ STRING = [MAJOR, MINOR, PATCH].compact.join(".")
14
14
  end
15
15
  end
@@ -102,7 +102,6 @@
102
102
  el.attr("data-remote-disabled", original)
103
103
  )
104
104
  $.each(errors, (index, error) ->
105
- console.info(error)
106
105
  $.cowtech.form.highlight_methods["twitter-bootstrap"].show_single($(error.input), error.messages[0])
107
106
  )
108
107
 
@@ -132,7 +131,6 @@
132
131
  )
133
132
 
134
133
  hide_single: ((field) ->
135
- console.info('h')
136
134
  field = $(field.attr("data-form-validation-msg-target")) if !$.cowtech.utils.is_blank(field.attr("data-form-validation-msg-target"))
137
135
  container = field.closest(".control-group")
138
136
  field.removeClass("invalid error")
@@ -225,7 +223,7 @@
225
223
  confirm = el.attr("data-form-password-confirm")
226
224
 
227
225
  if !$.cowtech.utils.is_blank(value)
228
- if ! (new RegExp("/^.{#{$.cowtech.form.password_minimum_length},}$/i")).test(value) && !el.hasClass("free")
226
+ if value.length() < $.cowtech.form.password_minimum_length && !el.hasClass("free")
229
227
  return $.cowtech.form.format_validation("password_length")
230
228
  else if el.is("[data-form-password-confirmer]")
231
229
  cel = $("#" + el.attr("data-form-password-confirmer"))
@@ -9,9 +9,11 @@
9
9
  $.cowtech = $.cowtech || {}
10
10
  $.cowtech.share =
11
11
  autoload: ((config) ->
12
- $("div.share").cowtech_share(config)
13
- hide_tips = ->
12
+ $("[data-share-role=\"container\"]").cowtech_share(config)
13
+
14
+ hide_tips = (->
14
15
  $(".qtip").qtip("hide")
16
+ )
15
17
 
16
18
  $(window).on("scroll", hide_tips)
17
19
 
@@ -30,7 +32,7 @@
30
32
  yadjust_def = -2
31
33
  yadjust = $.cowtech.utils.initialize(config.yadjust, yadjust_def)
32
34
 
33
- body.parent().find("h2").qtip(
35
+ body.parent().find("[data-share-role=\"trigger\"]").qtip(
34
36
  content:
35
37
  text: body
36
38
  position:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-js-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-15 00:00:00.000000000Z
12
+ date: 2012-04-16 00:00:00.000000000Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jeweler
16
+ requirement: &70266425544020 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70266425544020
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: sprockets
16
- requirement: &70228039661980 !ruby/object:Gem::Requirement
27
+ requirement: &70266425538520 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ! '>='
@@ -21,10 +32,10 @@ dependencies:
21
32
  version: '0'
22
33
  type: :runtime
23
34
  prerelease: false
24
- version_requirements: *70228039661980
35
+ version_requirements: *70266425538520
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: coffee-script
27
- requirement: &70228039661320 !ruby/object:Gem::Requirement
38
+ requirement: &70266425537540 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: '0'
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *70228039661320
46
+ version_requirements: *70266425537540
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: rails
38
- requirement: &70228039660620 !ruby/object:Gem::Requirement
49
+ requirement: &70266425536340 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,13 +54,13 @@ dependencies:
43
54
  version: '3.1'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *70228039660620
57
+ version_requirements: *70266425536340
47
58
  description: A set of Javascript libraries.
48
59
  email: shogun_panda@me.com
49
60
  executables: []
50
61
  extensions: []
51
62
  extra_rdoc_files:
52
- - README
63
+ - README.rdoc
53
64
  files:
54
65
  - lib/cowtech_js.rb
55
66
  - lib/cowtech_js/version.rb
@@ -72,7 +83,7 @@ files:
72
83
  - vendor/assets/javascripts/cowtech/share.js.coffee
73
84
  - vendor/assets/javascripts/cowtech/utils.js.coffee
74
85
  - vendor/assets/javascripts/cowtech/wysiwyg.js.coffee
75
- - README
86
+ - README.rdoc
76
87
  homepage: http://github.com/ShogunPanda/cowtech-js-rails
77
88
  licenses:
78
89
  - MIT
@@ -85,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
96
  requirements:
86
97
  - - ! '>='
87
98
  - !ruby/object:Gem::Version
88
- version: '0'
99
+ version: 1.9.2
89
100
  required_rubygems_version: !ruby/object:Gem::Requirement
90
101
  none: false
91
102
  requirements:
data/README DELETED
@@ -1,6 +0,0 @@
1
- Cowtech JS Rails
2
- =======
3
-
4
- A set of Javascript libraries.
5
-
6
- Copyright (c) 2012 Shogun <shogun_panda@me.com>, released under the MIT license.