sifttter-redux 0.6 → 0.6.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.
- checksums.yaml +4 -4
- data/HISTORY.md +8 -0
- data/Rakefile +1 -47
- data/features/2.initialization.feature +64 -65
- data/lib/sifttter-redux/constants.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b4732164a7de0c4c28ea756be13d7374b6c2ec
|
4
|
+
data.tar.gz: 9355c50c41868f66f6fe9978a54e8d1126c9c1c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241989e80e12181917a8c9273516f27bf9158e595be3354c120a97248490a45b4836cb6126cc20d0d9c4ed35df7e5cf571fdcf066c27cab9f10b49f0e8e97f94
|
7
|
+
data.tar.gz: 52258e05b83a4df1210c51262a3296d57eaba9695b81c59dbd48880634f51b5e08afa2958ace6fa4ba6fd6576c5207a6a4c2accf652b6cef007f015a450abc1c
|
data/HISTORY.md
CHANGED
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
|
4
4
|
def version
|
5
5
|
contents = File.read File.expand_path('../lib/sifttter-redux/constants.rb', __FILE__)
|
6
|
-
contents[
|
6
|
+
contents[/\sVERSION = '([^']+)'/, 1]
|
7
7
|
end
|
8
8
|
|
9
9
|
spec = eval(File.read('sifttter-redux.gemspec'))
|
@@ -43,55 +43,9 @@ end
|
|
43
43
|
|
44
44
|
desc "Build the gem"
|
45
45
|
task :build do
|
46
|
-
p version
|
47
46
|
FileUtils.mkdir_p "pkg"
|
48
47
|
sh "gem build sifttter-redux.gemspec"
|
49
48
|
FileUtils.mv("./sifttter-redux-#{ version }.gem", "pkg")
|
50
49
|
end
|
51
50
|
|
52
51
|
task :default => [:test, :features]
|
53
|
-
|
54
|
-
# require 'rake/clean'
|
55
|
-
# require 'rubygems'
|
56
|
-
# require 'rubygems/package_task'
|
57
|
-
# require 'rdoc/task'
|
58
|
-
# require 'cucumber'
|
59
|
-
# require 'cucumber/rake/task'
|
60
|
-
# Rake::RDocTask.new do |rd|
|
61
|
-
# rd.main = "README.rdoc"
|
62
|
-
# rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
63
|
-
# rd.title = 'Your application title'
|
64
|
-
# end
|
65
|
-
#
|
66
|
-
# spec = eval(File.read('sifttter_redux.gemspec'))
|
67
|
-
#
|
68
|
-
# Gem::PackageTask.new(spec) do |pkg|
|
69
|
-
# end
|
70
|
-
# CUKE_RESULTS = 'results.html'
|
71
|
-
# CLEAN << CUKE_RESULTS
|
72
|
-
# desc 'Run features'
|
73
|
-
# Cucumber::Rake::Task.new(:features) do |t|
|
74
|
-
# opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
|
75
|
-
# opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
|
76
|
-
# t.cucumber_opts = opts
|
77
|
-
# t.fork = false
|
78
|
-
# end
|
79
|
-
#
|
80
|
-
# desc 'Run features tagged as work-in-progress (@wip)'
|
81
|
-
# Cucumber::Rake::Task.new('features:wip') do |t|
|
82
|
-
# tag_opts = ' --tags ~@pending'
|
83
|
-
# tag_opts = ' --tags @wip'
|
84
|
-
# t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
|
85
|
-
# t.fork = false
|
86
|
-
# end
|
87
|
-
#
|
88
|
-
# task :cucumber => :features
|
89
|
-
# task 'cucumber:wip' => 'features:wip'
|
90
|
-
# task :wip => 'features:wip'
|
91
|
-
# require 'rake/testtask'
|
92
|
-
# Rake::TestTask.new do |t|
|
93
|
-
# t.libs << "test"
|
94
|
-
# t.test_files = FileList['test/*_test.rb']
|
95
|
-
# end
|
96
|
-
#
|
97
|
-
# task :default => [:test, :features]
|
@@ -1,4 +1,3 @@
|
|
1
|
-
@announce
|
2
1
|
Feature: Initialization
|
3
2
|
As a user, when I initialize Sifttter Redux,
|
4
3
|
I should be guided through the process as
|
@@ -9,46 +8,46 @@ Feature: Initialization
|
|
9
8
|
And an empty file located at "/tmp/srd/.dropbox_uploader"
|
10
9
|
When I run `srd init` interactively
|
11
10
|
And I type ""
|
12
|
-
And I type "
|
11
|
+
And I type "/tmp/srd/sifttter_download"
|
13
12
|
And I type "/Apps/ifttt/Sifttter"
|
14
|
-
And I type "
|
13
|
+
And I type "/tmp/srd/day_one_download"
|
15
14
|
And I type "/Apps/Day\ One/Journal.dayone/entries"
|
16
15
|
Then the exit status should be 0
|
17
16
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
18
17
|
"""
|
19
18
|
---
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
sifttter_redux:
|
20
|
+
config_location: "/tmp/srd/.sifttter_redux"
|
21
|
+
log_level: WARN
|
23
22
|
"""
|
24
23
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
25
24
|
"""
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
25
|
+
sifttter_local_filepath: "/tmp/srd/sifttter_download"
|
26
|
+
sifttter_remote_filepath: "/Apps/ifttt/Sifttter"
|
27
|
+
dayone_local_filepath: "/tmp/srd/day_one_download"
|
28
|
+
dayone_remote_filepath: "/Apps/Day\\ One/Journal.dayone/entries"
|
29
|
+
db_uploader:
|
30
|
+
base_filepath: "/usr/local/opt"
|
31
|
+
dbu_filepath: "/usr/local/opt/Dropbox-Uploader"
|
32
|
+
exe_filepath: "/usr/local/opt/Dropbox-Uploader/dropbox_uploader.sh"
|
34
33
|
"""
|
35
34
|
|
36
35
|
Scenario: Reinitialization (refuse)
|
37
36
|
Given a file located at "/tmp/srd/.sifttter_redux" with the contents:
|
38
37
|
"""
|
39
38
|
---
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
39
|
+
sifttter_redux:
|
40
|
+
config_location: "/tmp/srd/.sifttter_redux"
|
41
|
+
log_level: WARN
|
42
|
+
version: 10.0
|
43
|
+
sifttter_local_filepath: "/tmp/srd/sifttter_download"
|
44
|
+
sifttter_remote_filepath: "/Apps/ifttt/Sifttter"
|
45
|
+
dayone_local_filepath: "/tmp/srd/day_one_download"
|
46
|
+
dayone_remote_filepath: "/Apps/Day\\ One/Journal.dayone/entries"
|
47
|
+
db_uploader:
|
48
|
+
base_filepath: "/usr/local/opt"
|
49
|
+
dbu_filepath: "/usr/local/opt/Dropbox-Uploader"
|
50
|
+
exe_filepath: "/usr/local/opt/Dropbox-Uploader/dropbox_uploader.sh"
|
52
51
|
"""
|
53
52
|
And an empty file located at "/tmp/srd/.dropbox_uploader"
|
54
53
|
When I run `srd init` interactively
|
@@ -59,72 +58,72 @@ Feature: Initialization
|
|
59
58
|
Given a file located at "/tmp/srd/.sifttter_redux" with the contents:
|
60
59
|
"""
|
61
60
|
---
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
61
|
+
sifttter_redux:
|
62
|
+
config_location: "/tmp/srd/.sifttter_redux"
|
63
|
+
log_level: WARN
|
64
|
+
version: 10.0
|
65
|
+
sifttter_local_filepath: "/tmp/srd/sifttter_download"
|
66
|
+
sifttter_remote_filepath: "/Apps/ifttt/Sifttter"
|
67
|
+
dayone_local_filepath: "/tmp/srd/day_one_download"
|
68
|
+
dayone_remote_filepath: "/Apps/Day\\ One/Journal.dayone/entries"
|
69
|
+
db_uploader:
|
70
|
+
base_filepath: "/usr/local/opt"
|
71
|
+
dbu_filepath: "/usr/local/opt/Dropbox-Uploader"
|
72
|
+
exe_filepath: "/usr/local/opt/Dropbox-Uploader/dropbox_uploader.sh"
|
74
73
|
"""
|
75
74
|
And an empty file located at "/tmp/srd/.dropbox_uploader"
|
76
75
|
When I run `srd init` interactively
|
77
76
|
And I type "y"
|
78
77
|
And I type ""
|
79
|
-
And I type "
|
78
|
+
And I type "/tmp/srd/sifttter_download2"
|
80
79
|
And I type "/Apps/ifttt/Sifttter2"
|
81
|
-
And I type "
|
80
|
+
And I type "/tmp/srd/day_one_download2"
|
82
81
|
And I type "/Apps/Day\ One/Journal.dayone/entries2"
|
83
82
|
Then the exit status should be 0
|
84
83
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
85
84
|
"""
|
86
85
|
---
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
sifttter_redux:
|
87
|
+
config_location: "/tmp/srd/.sifttter_redux"
|
88
|
+
log_level: WARN
|
90
89
|
"""
|
91
90
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
92
91
|
"""
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
92
|
+
sifttter_local_filepath: "/tmp/srd/sifttter_download2"
|
93
|
+
sifttter_remote_filepath: "/Apps/ifttt/Sifttter2"
|
94
|
+
dayone_local_filepath: "/tmp/srd/day_one_download2"
|
95
|
+
dayone_remote_filepath: "/Apps/Day\\ One/Journal.dayone/entries2"
|
96
|
+
db_uploader:
|
97
|
+
base_filepath: "/usr/local/opt"
|
98
|
+
dbu_filepath: "/usr/local/opt/Dropbox-Uploader"
|
99
|
+
exe_filepath: "/usr/local/opt/Dropbox-Uploader/dropbox_uploader.sh"
|
101
100
|
"""
|
102
|
-
|
101
|
+
|
103
102
|
Scenario: Reinitialization (from scratch)
|
104
103
|
Given no file located at "/tmp/srd/.sifttter_redux"
|
105
104
|
And an empty file located at "/tmp/srd/.dropbox_uploader"
|
106
105
|
When I run `srd init -s` interactively
|
107
106
|
And I type ""
|
108
|
-
And I type "
|
107
|
+
And I type "/tmp/srd/sifttter_download"
|
109
108
|
And I type "/Apps/ifttt/Sifttter"
|
110
|
-
And I type "
|
109
|
+
And I type "/tmp/srd/day_one_download"
|
111
110
|
And I type "/Apps/Day\ One/Journal.dayone/entries"
|
112
111
|
Then the exit status should be 0
|
113
112
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
114
113
|
"""
|
115
114
|
---
|
116
|
-
|
117
|
-
|
118
|
-
|
115
|
+
sifttter_redux:
|
116
|
+
config_location: "/tmp/srd/.sifttter_redux"
|
117
|
+
log_level: WARN
|
119
118
|
"""
|
120
119
|
And the file "/tmp/srd/.sifttter_redux" should contain:
|
121
120
|
"""
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
121
|
+
sifttter_local_filepath: "/tmp/srd/sifttter_download"
|
122
|
+
sifttter_remote_filepath: "/Apps/ifttt/Sifttter"
|
123
|
+
dayone_local_filepath: "/tmp/srd/day_one_download"
|
124
|
+
dayone_remote_filepath: "/Apps/Day\\ One/Journal.dayone/entries"
|
125
|
+
db_uploader:
|
126
|
+
base_filepath: "/usr/local/opt"
|
127
|
+
dbu_filepath: "/usr/local/opt/Dropbox-Uploader"
|
128
|
+
exe_filepath: "/usr/local/opt/Dropbox-Uploader/dropbox_uploader.sh"
|
130
129
|
"""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sifttter-redux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Bach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -162,4 +162,3 @@ test_files:
|
|
162
162
|
- features/support/env.rb
|
163
163
|
- test/date_range_maker_test.rb
|
164
164
|
- test/test_helper.rb
|
165
|
-
has_rdoc:
|