remote_partial 0.3.0 → 0.3.1

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.
@@ -14,7 +14,6 @@ module RemotePartial
14
14
 
15
15
  def run
16
16
  create_or_update_partial
17
- # puts "stale_at: #{@partial.stale_at}, and stale? == #{@partial.stale?}"
18
17
  partial.update_stale_file
19
18
  rescue RemotePartialRetrivalError => error
20
19
  Rails.logger.warn error.message
@@ -30,7 +30,7 @@ module RemotePartial
30
30
  end
31
31
 
32
32
  def default_repeat_period
33
- 60
33
+ 1.minute
34
34
  end
35
35
 
36
36
  def update_stale_at
@@ -1,10 +1,14 @@
1
1
  module RemotePartial
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.3.1 Remove migration file
9
+ # ---------------------------
10
+ # Migration file is no longer needed but had been left in code.
11
+ #
8
12
  # 0.3.0 Partials persisted via YAML
9
13
  # ---------------------------------
10
14
  # Moved partial data to a YAML file to remove the dependency on ActiveRecord.
@@ -1 +1 @@
1
- <strong id="ct" class="big">Thursday, July 11, 2013 at 12:57:14 PM</strong>
1
+ <strong id="ct" class="big">Friday, July 12, 2013 at 9:11:10 AM</strong>
@@ -3,11 +3,11 @@ clock:
3
3
  url: http://www.timeanddate.com/worldclock/city.html?n=136
4
4
  criteria: ! '#ct'
5
5
  created_at: 2013-07-11 12:57:14.644407617 +01:00
6
- updated_at: 2013-07-11 12:57:15.115082801 +01:00
7
- stale_at: 2013-07-11 12:58:15.114612480 +01:00
6
+ updated_at: 2013-07-12 09:11:10.633546708 +01:00
7
+ stale_at: 2013-07-12 09:12:10.633475076 +01:00
8
8
  ruby:
9
9
  url: http://www.ruby-lang.org/en/
10
10
  criteria: ! '#intro'
11
11
  created_at: 2013-07-11 12:57:15.126905403 +01:00
12
- updated_at: 2013-07-11 12:57:15.149826114 +01:00
13
- stale_at: 2013-07-11 12:58:15.149248703 +01:00
12
+ updated_at: 2013-07-12 09:11:16.339316247 +01:00
13
+ stale_at: 2013-07-12 09:12:16.339248280 +01:00
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_partial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -76,7 +76,6 @@ files:
76
76
  - app/models/remote_partial/builder.rb
77
77
  - app/models/remote_partial/yaml_store.rb
78
78
  - config/routes.rb
79
- - db/migrate/20130702072157_create_remote_partial_partials.rb
80
79
  - lib/remote_partial/version.rb
81
80
  - lib/remote_partial/engine.rb
82
81
  - lib/remote_partial.rb
@@ -163,7 +162,8 @@ files:
163
162
  - test/unit/remote_partial/resource_manager_test.rb
164
163
  - test/unit/remote_partial_test.rb
165
164
  homepage: https://github.com/warwickshire/remote_partial
166
- licenses: []
165
+ licenses:
166
+ - MIT-LICENSE
167
167
  post_install_message:
168
168
  rdoc_options: []
169
169
  require_paths:
@@ -1,12 +0,0 @@
1
- class CreateRemotePartialPartials < ActiveRecord::Migration
2
- def change
3
- create_table :remote_partial_partials do |t|
4
- t.string :name, limit: 100, null: false
5
- t.text :url, limit: 0x7ff, null: false
6
- t.string :criteria
7
- t.float :repeat_period
8
- t.datetime :stale_at
9
- t.timestamps
10
- end
11
- end
12
- end