fjords 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,29 @@ require 'fjords-client'
4
4
  require "highline/import"
5
5
  require 'progress_bar'
6
6
 
7
+ if !DateTime.new.respond_to?(:to_time)
8
+ class DateTime
9
+ def to_time
10
+ usec = (new_offset.sec_fraction * 60 * 60 * 24 * (10**6)).to_i
11
+ Time.gm(new_offset.year, new_offset.month, new_offset.day, new_offset.hour, new_offset.min, new_offset.sec, usec)
12
+ end
13
+ end
14
+ end
15
+
16
+ if !DateTime.new.respond_to?(:to_i)
17
+ class DateTime
18
+ def to_i
19
+ seconds_since_unix_epoch.to_i
20
+ end
21
+
22
+ private
23
+ def seconds_since_unix_epoch
24
+ seconds_per_day = 86_400
25
+ (self - ::DateTime.civil(1970)) * seconds_per_day
26
+ end
27
+ end
28
+ end
29
+
7
30
  class Fjords::Cli::Core
8
31
  include Fjords::Cli::Runner
9
32
  include Fjords::Cli::Usage
@@ -1,3 +1,3 @@
1
1
  module Fjords
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,64 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fjords
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ prerelease:
5
+ version: 1.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Reynolds
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
16
+ version_requirements: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ! '>='
18
+ - - ">="
20
19
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
20
+ version: !binary |-
21
+ MA==
25
22
  none: false
23
+ requirement: !ruby/object:Gem::Requirement
26
24
  requirements:
27
- - - ! '>='
25
+ - - ">="
28
26
  - !ruby/object:Gem::Version
29
- version: '0'
27
+ version: !binary |-
28
+ MA==
29
+ none: false
30
+ prerelease: false
31
+ type: :runtime
30
32
  - !ruby/object:Gem::Dependency
31
33
  name: progress_bar
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
+ version_requirements: !ruby/object:Gem::Requirement
34
35
  requirements:
35
- - - ! '>='
36
+ - - ">="
36
37
  - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
38
+ version: !binary |-
39
+ MA==
41
40
  none: false
41
+ requirement: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - ! '>='
43
+ - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: '0'
45
+ version: !binary |-
46
+ MA==
47
+ none: false
48
+ prerelease: false
49
+ type: :runtime
46
50
  - !ruby/object:Gem::Dependency
47
51
  name: fjords-client
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
52
+ version_requirements: !ruby/object:Gem::Requirement
50
53
  requirements:
51
54
  - - '='
52
55
  - !ruby/object:Gem::Version
53
56
  version: 1.1.0
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
+ requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
60
  - - '='
60
61
  - !ruby/object:Gem::Version
61
62
  version: 1.1.0
63
+ none: false
64
+ prerelease: false
65
+ type: :runtime
62
66
  description: Fjords.cc CLI
63
67
  email:
64
68
  - me@tdreyno.com
@@ -67,7 +71,7 @@ executables:
67
71
  extensions: []
68
72
  extra_rdoc_files: []
69
73
  files:
70
- - .gitignore
74
+ - ".gitignore"
71
75
  - Gemfile
72
76
  - LICENSE
73
77
  - Rakefile
@@ -81,32 +85,34 @@ files:
81
85
  - lib/fjords/version.rb
82
86
  homepage: ''
83
87
  licenses: []
84
- post_install_message:
88
+ post_install_message:
85
89
  rdoc_options: []
86
90
  require_paths:
87
91
  - lib
88
92
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
- - - ! '>='
94
+ - - ">="
92
95
  - !ruby/object:Gem::Version
93
- version: '0'
94
96
  segments:
95
97
  - 0
96
- hash: -582392878008552670
97
- required_rubygems_version: !ruby/object:Gem::Requirement
98
+ hash: 2
99
+ version: !binary |-
100
+ MA==
98
101
  none: false
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
103
  requirements:
100
- - - ! '>='
104
+ - - ">="
101
105
  - !ruby/object:Gem::Version
102
- version: '0'
103
106
  segments:
104
107
  - 0
105
- hash: -582392878008552670
108
+ hash: 2
109
+ version: !binary |-
110
+ MA==
111
+ none: false
106
112
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 1.8.23
109
- signing_key:
113
+ rubyforge_project:
114
+ rubygems_version: 1.8.24
115
+ signing_key:
110
116
  specification_version: 3
111
117
  summary: Fjords.cc CLI
112
118
  test_files: []