cucumber-timecop 0.0.5 → 0.0.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: 51233a07fe90931cd8ebd4bf1dc7d686b5f2f941
4
- data.tar.gz: 8e20aec9270c54517a8e908cb26c53b25009ac7d
3
+ metadata.gz: 56f14d6872d8374e5258200b7a13786b84e0b6b7
4
+ data.tar.gz: 21ec114316cde135f01e5eb989a91670994b74c6
5
5
  SHA512:
6
- metadata.gz: b809e9fb9abd8df23c4698b536df12f39eb016edc7392e36799a0f60b57a01b5f86dee0ca09e4b065d165333342306f84a9d20117d2a195cc8e4efbd3b008052
7
- data.tar.gz: 8638bb13a5ea67838eb49e91506f604e6cb7ab49079e194de41c5e7b16b15d0cc7af850a6b81b292eec80a7b37dc77406e9993f64e45b1c6e06ffee4c9f2ff69
6
+ metadata.gz: bcdb4b583763a70787348d13528bc863109031cb00bc575bd24774c13333d0486d7972bcc41f112c9278f6a6b4411731ea29141583d2626d0388c7009f4ccca9
7
+ data.tar.gz: 5d69195cca5970d5d254a6a4fcef5d782bd7d2b9ed151874f7c14c09fb86e3a31e6abc33961da9a178401a0d57166a83f7a66a2eca3dc4fd4e32a8cd2cf8354e
@@ -0,0 +1,27 @@
1
+ ## Unreleased
2
+
3
+
4
+
5
+ ## 0.0.6 (2017-02-11)
6
+
7
+ - Only change Chronic.time_class when Rails is used ([#3](https://github.com/zedtux/cucumber-timecop/pull/3)) [[edejong](https://github.com/edejong)]
8
+
9
+ ## 0.0.5 (2014-10-04)
10
+
11
+ - Handle cucumber-timecop within or out of a Rails project
12
+
13
+ ## 0.0.4 (2014-08-29)
14
+
15
+ - Fixed Time zone error ([#1](https://github.com/zedtux/cucumber-timecop/pull/1)) [[v0dro](https://github.com/v0dro)]
16
+
17
+ ## 0.0.3 (2013-12-01)
18
+
19
+ - Remove cucumber.rb file as this gem can't be automatically loaded
20
+
21
+ ## 0.0.2 (2013-12-01)
22
+
23
+ - Fixed gem loading and set Chronic time zone to the Ruby Time one
24
+
25
+ ## 0.0.1 (2013-11-23)
26
+
27
+ - Initial release
@@ -0,0 +1,39 @@
1
+ # How to use it
2
+ # =============
3
+ #
4
+ # Visit http://blog.zedroot.org/using-docker-to-maintain-a-ruby-gem/
5
+
6
+ # ~~~~ Image base ~~~~
7
+ # Base image with the latest Ruby only
8
+ FROM ruby:2.3.0-slim
9
+ MAINTAINER Guillaume Hain zedtux@zedroot.org
10
+
11
+
12
+ # ~~~~ Set up the environment ~~~~
13
+ ENV DEBIAN_FRONTEND noninteractive
14
+
15
+ RUN mkdir -p /gem/
16
+ WORKDIR /gem
17
+ COPY Gemfile /gem
18
+ COPY *.gemspec /gem
19
+ COPY lib/cucumber/timecop/version.rb /gem/lib/cucumber/timecop/version.rb
20
+
21
+ # ~~~~ OS Maintenance & Rails Preparation ~~~~
22
+ # Rubygems and Bundler
23
+ RUN apt-get update && \
24
+ apt-get install -y git build-essential unzip && \
25
+ touch ~/.gemrc && \
26
+ echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
27
+ gem install rubygems-update && \
28
+ update_rubygems && \
29
+ gem install bundler && \
30
+ bundle install && \
31
+ apt-get remove --purge -y build-essential && \
32
+ apt-get autoclean -y && \
33
+ apt-get clean
34
+
35
+ # Import the gem source code
36
+ VOLUME .:/gem
37
+
38
+ ENTRYPOINT ["bundle", "exec"]
39
+ CMD ["rake", "-T"]
@@ -47,7 +47,7 @@ end
47
47
 
48
48
  Before do
49
49
  # Ensure Chronic is using the same time zone
50
- Chronic.time_class = defined?(Rails) ? Time.zone : Time.now.zone
50
+ Chronic.time_class = Time.zone if defined?(Rails)
51
51
  end
52
52
 
53
53
  After do
@@ -5,6 +5,6 @@ module Cucumber
5
5
  # @author [zedtux]
6
6
  #
7
7
  module Timecop
8
- VERSION = '0.0.5'
8
+ VERSION = '0.0.6'
9
9
  end
10
10
  end
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env bash
2
+
3
+ DOCKER_IMAGE_NAME="$USER/cucumber-timecop"
4
+ LIBRARY_NEW_VERSION=`cat lib/cucumber/timecop/version.rb | grep "VERSION =" | awk '{ print $3 }' | tr -d "'"`
5
+
6
+ LIBRARY_UPDATED=`git status --porcelain | grep -v "lib/cucumber/timecop/version.rb"`
7
+ if [[ -n "$LIBRARY_UPDATED" ]]; then
8
+ echo "Your repository is not clean !"
9
+ exit 1
10
+ fi
11
+
12
+ echo "Ensuring Docker image $DOCKER_IMAGE_NAME exists ..."
13
+ EXISTING_DOCKER_IMAGE=`docker images | grep "$DOCKER_IMAGE_NAME"`
14
+ if [[ -z "$EXISTING_DOCKER_IMAGE" ]]; then
15
+ echo "Building the Docker image ..."
16
+ docker build -t "$DOCKER_IMAGE_NAME" .
17
+ fi
18
+
19
+ echo "Committing new version ..."
20
+ git commit -am "Import version $LIBRARY_NEW_VERSION"
21
+
22
+ echo "Releasing gem ..."
23
+ docker run --rm -v ~/.gitconfig:/root/.gitconfig \
24
+ -v ~/.ssh/:/root/.ssh/ \
25
+ -v ~/.gem/:/root/.gem/ \
26
+ -v `pwd`:/gem/ "$DOCKER_IMAGE_NAME" rake release
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-timecop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - zedtux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-04 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -90,6 +90,8 @@ files:
90
90
  - ".gitignore"
91
91
  - ".ruby-gemset"
92
92
  - ".ruby-version"
93
+ - CHANGELOG.md
94
+ - Dockerfile
93
95
  - Gemfile
94
96
  - LICENSE
95
97
  - LICENSE.txt
@@ -98,6 +100,7 @@ files:
98
100
  - cucumber-timecop.gemspec
99
101
  - lib/cucumber/timecop.rb
100
102
  - lib/cucumber/timecop/version.rb
103
+ - make_new_release.sh
101
104
  homepage: https://github.com/zedtux/cucumber-timecop
102
105
  licenses:
103
106
  - MIT
@@ -118,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
121
  version: '0'
119
122
  requirements: []
120
123
  rubyforge_project:
121
- rubygems_version: 2.2.2
124
+ rubygems_version: 2.6.10
122
125
  signing_key:
123
126
  specification_version: 4
124
127
  summary: Add this gem to the test group of you Gemfile in order to be able to travel