tuberack 1.0.3 → 1.0.4

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: 93497339766310f69bebcc5361d88ae3ec950d43
4
- data.tar.gz: bf7ad251a46446918dbde54311a860592c8b1e1c
3
+ metadata.gz: 8ed580ce60e9883d5e81b33d15a38b6ac9a41797
4
+ data.tar.gz: 5254c2935f9ed0e9e34e42196ad0e0c412cad7b6
5
5
  SHA512:
6
- metadata.gz: 6c620bd73e45a95cb7ad223c57bd84b9e1cbfef23a02fc38b20c94dc5b89630e27bac90022e5b68ad74efb2bb38813f390d0d22a5e6abeb447a6dee86f359911
7
- data.tar.gz: b399c8ddef979e6d8636aff389af80b92f74a0f9e4a9a38afb54c0f5c6284290fec50539605cc1f0abc3bbfcafa5b6cdb036c393968edc3a9acd93fd96b22bdc
6
+ metadata.gz: 01cfbe8273eb0a87f36c2a9a3852e1df3e26933be8bb5e2c860842bb59e53b4fcebf069a1293db1712c3f57b72edac249b11ea540499fa75a927130f8434f93e
7
+ data.tar.gz: f5be8dbe18c4845654ac1d1c30cdf591fa4d9f4868cda767a96b5e4577bba623c63fffb76b63daeb29a133a6b3e309d38e802fe62d6e8293347e68096298680b
@@ -75,7 +75,7 @@ end
75
75
 
76
76
  desc "Implement testable into tests"
77
77
  def tuberack_test_help
78
- file = File.read('test/test_helper.rb').sub(/require "rails\/test_help"\n/, "require \"rails\/test_help\"\nrequire 'tuberack'\n")
78
+ file = File.read('test/test_helper.rb').sub(/require ("|')rails\/test_help("|')\n/, "require 'rails\/test_help'\nrequire 'tuberack'\n")
79
79
  File.write('test/test_helper.rb', file)
80
80
 
81
81
  append_file 'test/test_helper.rb' do
@@ -1,3 +1,3 @@
1
1
  module Tuberack
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/tuberack.rb CHANGED
@@ -1,6 +1,8 @@
1
- require 'tuberack/requirements'
2
- require 'tuberack/helpers'
3
- require 'tuberack/test_help'
1
+ if ENV['RAILS_ENV'] == 'test'
2
+ require 'tuberack/requirements'
3
+ require 'tuberack/helpers'
4
+ require 'tuberack/test_help'
5
+ end
4
6
 
5
7
  module Tuberack
6
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuberack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiriKolarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails