chronic_ping 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 00a341b18f12e7118122ac1e44ee5a2a93a84c62
4
+ data.tar.gz: c6aa15b0b79dd9b2e0ae638a0bb4949f8b1efbd6
5
+ SHA512:
6
+ metadata.gz: 7ef0447257242e32b04c81ce54d54549d156bba3acb67c3961309fccd6fc8edbffa9ded443739aec11a0afb513a2195637e0ba5afdd900833d798329ace4c4c5
7
+ data.tar.gz: 8dd3dddf7365a1e58401c468db38578d2b28577c314e08c333ffcdcd2d34ddd64d4b93e04bcdfbca47fb12ddfefe2a2b8d377893a7038ed978ec95aa04b4db49
@@ -33,10 +33,9 @@ The following values are already set by default, but if you want to customize th
33
33
 
34
34
  ChronicPing.configure do |config|
35
35
  config.datetime_format = "%B %d, %Y at %I:%M%p"
36
- config.relative_root_url = ""
37
36
  end
38
37
 
39
38
  License
40
39
  -------
41
40
 
42
- This project rocks and uses MIT-LICENSE.
41
+ This project rocks and uses MIT-LICENSE.
@@ -5,10 +5,10 @@ $('.chronic_ping').focusout(function() {
5
5
  var input_field = this;
6
6
  $.ajax({
7
7
  type: "POST",
8
- url: "<%= ChronicPing.config.relative_root_url %>/chronic_ping/parse",
8
+ url: "<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>/chronic_ping/parse",
9
9
  data: { q: this.value },
10
10
  dataType: "json"
11
11
  }).done(function( msg ) {
12
12
  input_field.value = msg.response;
13
13
  });
14
- });
14
+ });
@@ -1,11 +1,13 @@
1
1
  module ChronicPing
2
2
  class Configuration
3
3
  attr_accessor :datetime_format
4
- attr_accessor :relative_root_url
5
4
 
6
5
  def initialize
7
6
  @datetime_format = '%B %d, %Y at %I:%M%p'
8
- @relative_root_url = ""
7
+ end
8
+
9
+ def relative_root_url=(relative_url_root)
10
+ warn "[DEPRECATION] `ChronicPing.config.relative_url_root=` is deprecated. ENV['RAILS_RELATIVE_URL_ROOT'] will be used during asset:precompile instead."
9
11
  end
10
12
  end
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module ChronicPing
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronic_ping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Hall
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-15 00:00:00.000000000 Z
11
+ date: 2013-04-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,33 +27,29 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: chronic
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: jquery-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Simple rails engine that uses ajax to ping Chronic, giving users imediate
@@ -70,36 +63,35 @@ files:
70
63
  - app/assets/javascripts/chronic_ping.js.erb
71
64
  - app/controllers/chronic_ping_controller.rb
72
65
  - config/routes.rb
73
- - lib/chronic_ping/configuration.rb
74
- - lib/chronic_ping/engine.rb
75
- - lib/chronic_ping/version.rb
76
- - lib/chronic_ping.rb
77
66
  - lib/tasks/chronic_ping_tasks.rake
67
+ - lib/chronic_ping.rb
68
+ - lib/chronic_ping/version.rb
69
+ - lib/chronic_ping/engine.rb
70
+ - lib/chronic_ping/configuration.rb
78
71
  - MIT-LICENSE
79
72
  - Rakefile
80
73
  - README.markdown
81
74
  homepage: https://github.com/biola/chronic_ping
82
75
  licenses: []
76
+ metadata: {}
83
77
  post_install_message:
84
78
  rdoc_options: []
85
79
  require_paths:
86
80
  - lib
87
81
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
82
  requirements:
90
- - - ! '>='
83
+ - - '>='
91
84
  - !ruby/object:Gem::Version
92
85
  version: '0'
93
86
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
87
  requirements:
96
- - - ! '>='
88
+ - - '>='
97
89
  - !ruby/object:Gem::Version
98
90
  version: '0'
99
91
  requirements: []
100
92
  rubyforge_project:
101
- rubygems_version: 1.8.25
93
+ rubygems_version: 2.0.0.rc.2
102
94
  signing_key:
103
- specification_version: 3
95
+ specification_version: 4
104
96
  summary: Uses ajax and chronic to parse date text_fields
105
97
  test_files: []