sifttter-redux 0.6.2 → 0.6.3
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 +6 -0
- data/README.md +2 -2
- data/bin/srd +1 -1
- data/lib/sifttter-redux.rb +1 -2
- data/lib/sifttter-redux/constants.rb +1 -1
- data/lib/sifttter-redux/date-range-maker.rb +0 -1
- data/lib/sifttter-redux/sifttter.rb +0 -2
- data/res/preference_prompts.yaml +9 -9
- data/sifttter-redux.gemspec +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e382631ae915da24fed5da9526eb9747157e9995
|
|
4
|
+
data.tar.gz: 80e4788c9e75aadfc79a5bb491c339f2eae24ac1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 086b0ee5b7d43557955de3b5b3b05c61adbc553c63331f06f6d7ed287ea6121a195c27a787dd6eddf9f679ddde775be96b188e51981ae8c771e9cc12701d6101
|
|
7
|
+
data.tar.gz: 14e2c3c9b3230ba64d5fb5b580b9b79ce743690173e43f90eabff81a2f0f378067f8c9f0e88114545cdf0ed01bbf85bedcd648b71edc8ee4f40f6e4ac0b3c8b5
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Sifttter Redux
|
|
2
2
|
==============
|
|
3
|
-
[](https://travis-ci.org/bachya/Sifttter-Redux)
|
|
4
|
+
[](http://badge.fury.io/rb/sifttter-redux)
|
|
5
5
|
|
|
6
6
|
Siftter Redux is a modification of Craig Eley's [Sifttter](http://craigeley.com/post/72565974459/sifttter-an-ifttt-to-day-one-logger "Sifttter"), a script to collect information from [IFTTT](http://www.ifttt.com "IFTTT") and place it in a [Day One](http://dayoneapp.com, "Day One") journal.
|
|
7
7
|
|
data/bin/srd
CHANGED
data/lib/sifttter-redux.rb
CHANGED
|
@@ -109,8 +109,7 @@ module SifttterRedux
|
|
|
109
109
|
_dates = DateRangeMaker.range(options[:f], options[:t], options[:i])
|
|
110
110
|
|
|
111
111
|
if _dates.last > Date.today
|
|
112
|
-
|
|
113
|
-
messenger.warn(long_message)
|
|
112
|
+
messenger.warn("Ignoring overextended end date and using today's date (#{ Date.today })...")
|
|
114
113
|
r = (_dates.first..Date.today)
|
|
115
114
|
else
|
|
116
115
|
r = (_dates.first.._dates.last)
|
|
@@ -4,7 +4,6 @@ module SifttterRedux
|
|
|
4
4
|
# DateRangeMaker Module
|
|
5
5
|
# Returns a Range of dates based on supplied parameters
|
|
6
6
|
module DateRangeMaker
|
|
7
|
-
|
|
8
7
|
# Returns a date range for the last N days (including
|
|
9
8
|
# today's date if specified).
|
|
10
9
|
# @param [Integer} num_days The number of days to look back
|
|
@@ -2,8 +2,6 @@ module SifttterRedux
|
|
|
2
2
|
# Sifttter Module
|
|
3
3
|
# Wrapper module for Sifttter itself
|
|
4
4
|
module Sifttter
|
|
5
|
-
# Modified form of Sifttter
|
|
6
|
-
#
|
|
7
5
|
# Sifttter: An IFTTT-to-Day One Logger by Craig Eley
|
|
8
6
|
# Based on tp-dailylog.rb by Brett Terpstra 2012
|
|
9
7
|
# @param [Date] date The date to use when scanning Sifttter
|
data/res/preference_prompts.yaml
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
prompts:
|
|
2
2
|
- prompt: Where do you want to download Sifttter files to (temporarily)?
|
|
3
3
|
default: /tmp/sifttter
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
config_key: sifttter_local_filepath
|
|
5
|
+
config_section: sifttter_redux
|
|
6
6
|
- prompt: Where are your Sifttter files located in Dropbox?
|
|
7
7
|
default: /Apps/ifttt/sifttter
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
config_key: sifttter_remote_filepath
|
|
9
|
+
config_section: sifttter_redux
|
|
10
10
|
- prompt: Where do you want to download Day One files to (temporarily)?
|
|
11
11
|
default: /tmp/dayone
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
config_key: dayone_local_filepath
|
|
13
|
+
config_section: sifttter_redux
|
|
14
14
|
- prompt: Where are your Day One files located in Dropbox?
|
|
15
15
|
default: /Apps/Day\ One/Journal.dayone/entries
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
config_key: dayone_remote_filepath
|
|
17
|
+
config_section: sifttter_redux
|
data/sifttter-redux.gemspec
CHANGED
|
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.add_development_dependency('rdoc', '4.1.1')
|
|
28
28
|
spec.add_development_dependency('aruba', '0.5.4')
|
|
29
29
|
spec.add_runtime_dependency('chronic', '0.10.2')
|
|
30
|
-
spec.add_runtime_dependency('cliutils', '1.
|
|
30
|
+
spec.add_runtime_dependency('cliutils', '~> 1.3')
|
|
31
31
|
spec.add_runtime_dependency('gli','2.9.0')
|
|
32
32
|
end
|
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: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
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-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -70,16 +70,16 @@ dependencies:
|
|
|
70
70
|
name: cliutils
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.
|
|
75
|
+
version: '1.3'
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.
|
|
82
|
+
version: '1.3'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: gli
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -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:
|