eventify 0.9.5 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c8510879cb3cdd280c5138f101ec6cf5861aabc
4
- data.tar.gz: 8b9aac7da8a0b182df32a0d1112d07000158fc3a
3
+ metadata.gz: 00e77a11dac89501d01e4608f63817fc3d9c7a21
4
+ data.tar.gz: 11d9fb0336f288f55142dd7aaf5ddf4440129e77
5
5
  SHA512:
6
- metadata.gz: 320bc1f228f8ade42b13a904b8bc0f005fed6ade2cc29300bf6288b0e89e4d8749e0e293e43b065cbbdfa47ef7f1c447bb5977d8ab37faedd5be3e98a926315c
7
- data.tar.gz: eaee8b2ebbe21673194a7dc3896379dc304ddffec236e687042891d1387fd71389d023173491201b5a807d6e49ad8b98907e124d5ec9f6bbde45c53469898714
6
+ metadata.gz: 5a66e1517a0757e7dbf127e1b751d13278f9587d866c87537c21b6e686d9c02756dc8c64381bdf29f6735142256452c8e8a42b278dd57af31c669f09d65a23ed
7
+ data.tar.gz: 9f610e2689e9d533422deb375a5e2f41b4b0a08cbe52450cc699bf65a081658d521b5f3d74a967bb4e23f7b506133428396a8058013ab3a6665adf96c74b233c
data/README.md CHANGED
@@ -20,18 +20,20 @@ providers/organizers.
20
20
 
21
21
  ## Usage
22
22
 
23
- Create configuration file:
23
+ * Create configuration file with your e-mail address:
24
24
 
25
- $ ruby -reventify -e "Eventify::Configuration.new.save"
25
+ $ ruby -reventify -e "Eventify::Configuration.new(subscribers: ['foo@bar.com']).save"
26
26
 
27
- Edit configuration settings by adding your e-mail into `subscribers` list:
28
-
29
- $ vi ~/.eventify/config.yaml
30
-
31
- Run it from command line and add it into `cron`:
27
+ * Run it from command line and add it into `cron`:
32
28
 
33
29
  $ ruby -reventify -e "Eventify.new.process_new_events"
34
30
 
31
+ * Check your e-mail for information about upcoming events.
32
+
33
+ * Edit configuration settings if defaults won't work for you:
34
+
35
+ $ vi ~/.eventify/config.yaml
36
+
35
37
  ## Supported Providers
36
38
 
37
39
  The following providers are currently supported:
@@ -10,6 +10,7 @@ class Eventify::Configuration
10
10
 
11
11
  def save
12
12
  FileUtils.mkdir_p File.dirname(PATH)
13
+ @configuration[:subscribers] = [@configuration[:subscribers]].flatten
13
14
  File.open(PATH, "w") { |f| f.write YAML.dump(@configuration) }
14
15
  end
15
16
 
@@ -1,3 +1,3 @@
1
1
  class Eventify
2
- VERSION = "0.9.5"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -36,6 +36,11 @@ describe Eventify::Configuration do
36
36
  Eventify::Configuration.new(foo: "bar").save
37
37
  YAML.load(File.read(Eventify::Configuration::PATH))[:foo].should == "bar"
38
38
  end
39
+
40
+ it "saves subscribers as an array even if it is specified as a string" do
41
+ Eventify::Configuration.new(subscribers: "foo@bar.com").save
42
+ YAML.load(File.read(Eventify::Configuration::PATH))[:subscribers].should == ["foo@bar.com"]
43
+ end
39
44
  end
40
45
 
41
46
  context "#[]" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman