sifttter-redux 1.0.1 → 1.0.2

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: 819d31f2990283e552596f7759ba300609edfd82
4
- data.tar.gz: 177871630ec8e24ea9dea1036f7b17170f448951
3
+ metadata.gz: bb29995581d17b202452de35c53a3c12416c0ced
4
+ data.tar.gz: 27198cf94b96ffb893f40a017cf54302dd34e04f
5
5
  SHA512:
6
- metadata.gz: dfc1d3007b24c30ab23f6713ed2e7187d2480c19fadff70c3193ceb35e4175d3ad71b798adbb80bdb6365d6f5bed09cf86694021f3d59c64f6a1f09c4d390f88
7
- data.tar.gz: 8e258aed37dfd0dab9e66a58d8a6b64b6f24958be3fb7043ec43a62fec22e4b21bdd773752e0b99ace590e88de0e36fb8c3dab64a00d80df1e7884da013d1bca
6
+ metadata.gz: bad0f1999585d250e3e952e260850089d9f0201755fdf65695aa98edb7cbeafb2bdc6abd3781ad1f6f5d486836c4fa69c93f188e86cc8e29f4d149c88084ece1
7
+ data.tar.gz: b3e83d30a8466b3235da0c301be4384905a35262d1c7df577f05b836354692132bf64e3e9f9cb677a9ffa5bdee943f0a086ad425cdb41514cf6e8bbbc7681059
data/HISTORY.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 1.0.2 (2014-04-22)
2
+
3
+ * Added `-d` flag to catch up a specific date
4
+ * Added an error message for instances where Dropbox Uploader might be misconfigured
5
+ * Small bugfixes
6
+
1
7
  # 1.0.1 (2014-04-22)
2
8
 
3
9
  * Fixed a bug in which entry titles were not being cased properly
data/README.md CHANGED
@@ -65,7 +65,7 @@ SYNOPSIS
65
65
  srd [global options] command [command options] [arguments...]
66
66
 
67
67
  VERSION
68
- 1.0.1
68
+ 1.0.2
69
69
 
70
70
  GLOBAL OPTIONS
71
71
  --help - Show this message
@@ -108,7 +108,8 @@ $ srd init
108
108
 
109
109
  Initialization will perform the following steps:
110
110
 
111
- 1. Download [Dropbox Uploader](https://github.com/andreafabrizi/Dropbox-Uploader "Dropbox-Uploder")to a location of your choice.
111
+ 1. Download [Dropbox Uploader](https://github.com/andreafabrizi/Dropbox-Uploader "Dropbox-Uploder")
112
+ to a location of your choice.
112
113
  2. Automatically configure Dropbox Uploader.
113
114
  3. Collect some user paths (note that you can use tab completion here!):
114
115
  * The location on your filesystem where Sifttter files will be temporarily stored
@@ -407,10 +408,14 @@ $ srd exec -i -f 2014-02-01
407
408
 
408
409
  Two notes to be aware of:
409
410
 
410
- * `-f` and `-t` are *inclusive* parameters, meaning that when specified, thosedates will be included when searching for Siftter data.
411
+ * `-f` and `-t` are *inclusive* parameters, meaning that when specified, those
412
+ dates will be included when searching for Siftter data.
411
413
  * Although you can specify `-f` by itself, you cannot specify `-t` by itself.
412
414
 
413
- Sifttter Redux makes use of the excellent [Chronic gem](https://github.com/mojombo/chronic "Chronic"), which provides natural language parsing for dates and times. This means that you can run commands with more "human" dates:
415
+ Sifttter Redux makes use of the excellent
416
+ [Chronic gem](https://github.com/mojombo/chronic "Chronic"), which provides
417
+ natural language parsing for dates and times. This means that you can run
418
+ commands with more "human" dates:
414
419
 
415
420
  ```
416
421
  $ srd exec -f "last monday" -t "yesterday"
@@ -428,7 +433,8 @@ $ srd exec -f "last monday" -t "yesterday"
428
433
  #### EXECUTION COMPLETE!
429
434
  ```
430
435
 
431
- See [Chronic's Examples section](https://github.com/mojombo/chronic#examples "Chronic Examples") for more examples.
436
+ See [Chronic's Examples section](https://github.com/mojombo/chronic#examples "Chronic Examples")
437
+ for more examples.
432
438
 
433
439
  # Cron Job
434
440
 
@@ -512,7 +518,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
512
518
 
513
519
  # Credits
514
520
 
515
- * Craig Eley for [Sifttter](http://craigeley.com/post/72565974459/sifttter-an-ifttt-to-day-one-logger "Sifttter") and for giving me the idea for Sifttter Redux
521
+ * Craig Eley for [Sifttter](http://craigeley.com/post/72565974459/sifttter-an-ifttt-to-day-one-logger "Sifttter")
522
+ and for giving me the idea for Sifttter Redux
516
523
  * Dave Copeland for [GLI](https://github.com/davetron5000/gli "GLI")
517
524
  * Andrea Fabrizi for [Dropbox Uploader](https://github.com/andreafabrizi/Dropbox-Uploader "Dropbox Uploader")
518
- * ~~Tom Preston-Werner~~ (sorry: can't support [harrassment](http://www.businessinsider.com/github-co-founder-suspended-2014-3 "GitHub Founder Tom Preston-Werner Suspended After Harassment Allegations")) ~~and~~ Lee Jarvis for [Chronic](https://github.com/mojombo/chronic "Chronic")
525
+ * ~~Tom Preston-Werner~~ (sorry: can't
526
+ support [harrassment](http://www.businessinsider.com/github-co-founder-suspended-2014-3 "GitHub Founder Tom Preston-Werner Suspended After Harassment Allegations"))
527
+ ~~and~~ Lee Jarvis for [Chronic](https://github.com/mojombo/chronic "Chronic")
data/bin/srd CHANGED
@@ -104,6 +104,7 @@ end
104
104
  # ------------------------------------------------------
105
105
  desc 'Execute the app'
106
106
  command :exec do |c|
107
+ c.flag([:d], desc: 'Run catch-up mode with a particular date')
107
108
  c.flag([:f], desc: 'Run catch-up mode with this start date')
108
109
  c.flag([:n], desc: 'Run catch-up mode for the last N days')
109
110
  c.flag([:t], desc: 'Run catch-up mode with this end date (must also have -f)')
@@ -29,5 +29,5 @@ module SifttterRedux
29
29
  SUMMARY = 'Automated IFTTT to Day One engine.'
30
30
 
31
31
  # The Gem's version
32
- VERSION = '1.0.1'
32
+ VERSION = '1.0.2'
33
33
  end
@@ -70,7 +70,6 @@ module SifttterRedux
70
70
  datestamp = date.to_time.utc.iso8601
71
71
  starred = false
72
72
 
73
-
74
73
  output_dir = configuration.sifttter_redux[:dayone_local_filepath]
75
74
  Dir.mkdir(output_dir) unless Dir.exists?(output_dir)
76
75
 
@@ -87,10 +87,15 @@ module SifttterRedux
87
87
  # @param [Hash] options GLI command line options
88
88
  # @return [Range]
89
89
  def self.get_dates_from_options(options)
90
- if options[:c] || options[:n] || options[:w] || options[:y] || options[:f] || options[:t]
90
+ if options[:c] || options[:n] || options[:w] ||
91
+ options[:y] || options[:f] || options[:t] ||
92
+ options[:d]
91
93
  # Yesterday
92
94
  r = DateRangeMaker.yesterday if options[:y]
93
95
 
96
+ # Specific date
97
+ r = DateRangeMaker.range(options[:d], options[:d]) if options[:d]
98
+
94
99
  # Current Week
95
100
  r = DateRangeMaker.last_n_weeks(0, options[:i]) if options[:c]
96
101
 
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: 1.0.1
4
+ version: 1.0.2
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-22 00:00:00.000000000 Z
11
+ date: 2014-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake