trackchange 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,9 +98,16 @@ module Trackchange
98
98
  File.join(path, 'config.yml')
99
99
  end
100
100
 
101
+ def default_config
102
+ {
103
+ version: VERSION,
104
+ fetch: "lynx -nolist -dump '%url%' | uniq"
105
+ }
106
+ end
107
+
101
108
  def config
102
109
  return @config if @config
103
- data = { version: VERSION }
110
+ data = default_config
104
111
  data = YAML.load(File.read(config_path)) if File.exist?(config_path)
105
112
 
106
113
  # upgrade from <= 0.2.0
@@ -116,7 +123,7 @@ module Trackchange
116
123
  # upgrade from 0.3.0 to 0.4.0
117
124
  if v(data[:version]) < v('0.4.0')
118
125
  data[:version ] = '0.4.0'
119
- data[:fetch] = "lynx -nolist -dump '%url%' | uniq"
126
+ data[:fetch] = default_config[:fetch]
120
127
  data[:feed_size] = 20
121
128
  @config = OpenStruct.new(data)
122
129
  store_config!
@@ -1,3 +1,3 @@
1
1
  module Trackchange
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
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: 2015-02-23 00:00:00.000000000 Z
12
+ date: 2016-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cronedit
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: -2268921304151947388
98
+ hash: -4087208790757576818
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: -2268921304151947388
107
+ hash: -4087208790757576818
108
108
  requirements: []
109
109
  rubyforge_project:
110
110
  rubygems_version: 1.8.23