sugarcube 3.3.5 → 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4de89aabaaf8a83810ab069bf1a29577102fa482
4
- data.tar.gz: 725ac56efa88b23dd73d1dd6ea3995d0f0ea6555
3
+ metadata.gz: 820bca2bcc5d1521cd23b73499093658353ae1e5
4
+ data.tar.gz: 9d166c0da9c080488c7cc327cc38a273fdb4afb3
5
5
  SHA512:
6
- metadata.gz: 957e029dcd2bb1dcb0f95e4f7da3b23ba2c159c8b6d8c2edccd8b54511ef709f23bc5c79ca2db304b697ef8ba0236437c7c0128dac65f6e77039ea5b0208b0bc
7
- data.tar.gz: 046cec67dfe8b834fa135332b9d12160e0fa4e105def2def608795b5a957793ffb4aa12a96d8f71536267e0118d7f46318daf69e2a78c6dd62fa0cd85eaadc86
6
+ metadata.gz: 03c4d27e1eb89a61e41a776450a5927319405d52595900526d37ad57a3a8d1afab836c1e09f4809b60fd2cdf6b3888ebec7bc30ba84c16ba0fd951d4df759d74
7
+ data.tar.gz: 42e80c5af7959ef62af788b435dd80eb89f9a6f4bc9ee12fbea7ac8a4f4d6e1d16a24a85ed9b23316777c2b4823ce54ad8735ef9430be59b2326bbcc849aa46d
@@ -4,6 +4,7 @@ class NSDate
4
4
  # as-is
5
5
  SugarCubeFormats = {
6
6
  iso8601: [:yyyy, '-', :MM, '-', :dd, ' ', :'HH:mm:ss.SSS'],
7
+ universal: [:yyyy, '-', :MM, '-', :dd, 'T', :'HH:mm:ss'],
7
8
  ymd: [:yyyy, '-', :MM, '-', :dd],
8
9
  hms: [:'HH:mm:ss.SSS'],
9
10
  }
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '3.3.5'
2
+ Version = '3.3.6'
3
3
  end
@@ -123,6 +123,15 @@ describe "NSDate" do
123
123
  date.string_with_format(:iso8601, timezone:"UTC".nstimezone).should == '2013-01-02 12:15:30.000'
124
124
  end
125
125
 
126
+ it "should have an NSDate#string_with_format method (:universal)" do
127
+ @date.string_with_format(:universal).should == '2013-01-02T12:15:30'
128
+ end
129
+
130
+ it "should have an NSDate#string_with_format method (:universal) and timezone" do
131
+ date = @date + @date.utc_offset
132
+ date.string_with_format(:universal, timezone:"UTC".nstimezone).should == '2013-01-02T12:15:30'
133
+ end
134
+
126
135
  it "should have an NSDate#string_with_format method (:ymd)" do
127
136
  @date.string_with_format(:ymd).should == '2013-01-02'
128
137
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugarcube
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.5
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-05-01 00:00:00.000000000 Z
15
+ date: 2015-07-15 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description: |
18
18
  == Description