ecraft-extensions 0.3.0 → 0.3.1

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: c25113dc68cc699ceb7211a9f6350287931416a8
4
- data.tar.gz: fcf1be83809dc87238fd1731f79602bb84b8b7e5
3
+ metadata.gz: af3834c6d1357bfa8ffe8806ebca6545b721b971
4
+ data.tar.gz: dd5b2a7a8163474d089fc226d2ab9ccd989f7f90
5
5
  SHA512:
6
- metadata.gz: 8238dc69b792b8c9221f22b139e1ffa797d21d48c44b0a1003473d410d3d064c0f1d50550246ed11e2a04290e460fed56f51bfbb60d1239d3d28c47a315f8b7a
7
- data.tar.gz: a94300f74e6c00a4bf5f4d295afc1bc2c845dce93473387900777c21ed9660a2e67091441fe6ef60b567ee770d2543b141515950549a01ba90f531a77de4a1d0
6
+ metadata.gz: 218f060f591e94b9c75c808050dc4910f414a752101b8cd8f8e9ed0a5f0165566b088a8177c8081d23d3c0bdbe04c8d2d9978e89058ea42e3cff64273fadd86e
7
+ data.tar.gz: 73a4dc85bce0cc233ec878d086b9e87870346e1685b6a0ba4bc172f51d00136914e0216821c1836e53bf0113e9402070a3d0779542b5703b2ff8023512e301d4
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  .yardoc/
3
3
  coverage/
4
+ pkg/
@@ -2,6 +2,9 @@ AllCops:
2
2
  TargetRubyVersion: 2.3
3
3
  DisplayCopNames: true
4
4
 
5
+ Layout/MultilineOperationIndentation:
6
+ EnforcedStyle: indented
7
+
5
8
  Lint/EndAlignment:
6
9
  EnforcedStyleAlignWith: variable
7
10
 
@@ -21,14 +24,12 @@ Style/BlockDelimiters:
21
24
  Style/ClassAndModuleChildren:
22
25
  Enabled: false
23
26
 
27
+ Style/DateTime:
28
+ Enabled: false
24
29
  Style/Documentation:
25
30
  Enabled: false
26
31
  Style/Encoding:
27
32
  Enabled: false
28
- Style/FileName:
29
- Enabled: false
30
- Style/MultilineOperationIndentation:
31
- EnforcedStyle: indented
32
33
  Style/NumericPredicate:
33
34
  Enabled: false
34
35
  Style/FrozenStringLiteralComment:
data/README.md CHANGED
@@ -59,6 +59,23 @@ bundle exec yard server -r
59
59
 
60
60
  Check the locally served documentation at http://localhost:8808/
61
61
 
62
+ ### Releasing a new version
63
+
64
+ - Bump the version in `version.rb`
65
+ - Create the tag:
66
+
67
+ ```
68
+ $ git release v1.0.x`
69
+ ```
70
+
71
+ - Build the gemfile and push it to Rubygems.org:
72
+
73
+ ```shell
74
+ $ bundle exec rake build release
75
+ ```
76
+
77
+ - Generate the changelog (`cargo install changelog-rs && changelog-rs .`) and copy the relevant lines to [the releases page](https://github.com/ecraft/ecraft-extensions/releases).
78
+
62
79
  ### License
63
80
 
64
81
  MIT
@@ -7,6 +7,9 @@ class ::Time
7
7
  end
8
8
 
9
9
  def to_json(*_a)
10
- iso8601.to_json
10
+ # Use the precision provided in our receiver, but only up to milliseconds at max. Objects lacking the fraction part
11
+ # altogether will be serialized without fraction part using this algorithm.
12
+ fraction_digits = [nsec.to_s.sub(/0+$/, '').length, 3].min
13
+ iso8601(fraction_digits).to_json
11
14
  end
12
15
  end
@@ -1,5 +1,5 @@
1
1
  module Ecraft
2
2
  module Extensions
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecraft-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tre Kronor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport