sails 0.1.3 → 0.1.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: 2e74e7c5aa4367c6ff007908da99902fd191e3d5
4
- data.tar.gz: 3c0809e759597d4d24e9a11d954955f470d80d45
3
+ metadata.gz: 5f45fd6f786f64cce9eba7b122b22e29aa7e337a
4
+ data.tar.gz: 78eac1b7c08a56f29af0e56c97aa2bcf9ad23dfb
5
5
  SHA512:
6
- metadata.gz: c8bd636249f59c425071153d49efc3820362af838065ba647f5677928fb6cf69f7a3954358679336ddf94e01c5e31be6583a9092654b62b727e29c39f20b87b8
7
- data.tar.gz: 902bdd6d4b2827e082ab333e4c0d0c0c6523992be83717141e68f3080d6897bddb1b23077ccc4ccbf7e1bfd16ac714da0b59ab9088849bf778d3bb5d375acb03
6
+ metadata.gz: 47fb7a78f01a40bffe5bcbc4abaac978d9230a240fc1e22f66f8336293075d1961605682709e3cfc1b8771f8050e0c1ab048d5df90fb5ee2bdea127e9a74dc95
7
+ data.tar.gz: 68ef692559d3be35f00d714872d3453842f6cf635f99be1b4cd537a23a3fd0e949fa9c5b45e9d3b7e773bc9eaf7b216fbcebc6f436f3bdab951c7c403a6b44cc
data/.gitignore CHANGED
@@ -33,3 +33,4 @@ build/
33
33
 
34
34
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
35
  .rvmrc
36
+ spec/dummy/log/
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.4 / 2014-12-24
2
+
3
+ - Sails.root use Linux pwd command, to support symlink dir, for example like Capistrano's project/current path.
4
+
1
5
  ## 0.1.3 / 2014-12-22
2
6
 
3
7
  - Fix zombie process on restart in some Linux systems.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sails (0.1.2)
4
+ sails (0.1.3)
5
5
  activesupport (>= 3.2.0)
6
6
  thor
7
7
  thrift (>= 0.9.0)
@@ -9,15 +9,15 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (4.1.8)
13
- i18n (~> 0.6, >= 0.6.9)
12
+ activesupport (4.2.0)
13
+ i18n (~> 0.7)
14
14
  json (~> 1.7, >= 1.7.7)
15
15
  minitest (~> 5.1)
16
- thread_safe (~> 0.1)
16
+ thread_safe (~> 0.3, >= 0.3.4)
17
17
  tzinfo (~> 1.1)
18
18
  dalli (2.7.1)
19
19
  diff-lcs (1.2.5)
20
- i18n (0.6.11)
20
+ i18n (0.7.0)
21
21
  json (1.8.1)
22
22
  minitest (5.5.0)
23
23
  rspec (3.1.0)
data/lib/sails/base.rb CHANGED
@@ -67,7 +67,9 @@ module Sails
67
67
  # => #<Pathname:/some/path/to/project/file>
68
68
  #
69
69
  def self.root
70
- @root ||= Pathname.new(Dir.pwd)
70
+ return @root if defined?(@root)
71
+ path = `pwd -L`.sub(/\n/,'') rescue Dir.pwd
72
+ @root ||= Pathname.new(path)
71
73
  end
72
74
 
73
75
  def self.root=(root)
data/lib/sails/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sails
2
2
  def self.version
3
- "0.1.3"
3
+ "0.1.4"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ Sails.root = File.expand_path("../dummy", __FILE__)
5
5
  $LOAD_PATH.unshift Sails.root
6
6
 
7
7
  # for test Sails config
8
+ I18n.config.enforce_available_locales = false
8
9
  module Sails
9
10
  config.app_name = 'hello'
10
11
  config.host = '1.1.1.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-12-22 00:00:00.000000000 Z
15
+ date: 2014-12-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -108,7 +108,6 @@ files:
108
108
  - lib/sails/version.rb
109
109
  - sails.gemspec
110
110
  - spec/cli_spec.rb
111
- - spec/dummy/log/development.log
112
111
  - spec/rails_spec.rb
113
112
  - spec/sails_spec.rb
114
113
  - spec/service/base_spec.rb
@@ -141,7 +140,6 @@ specification_version: 4
141
140
  summary: Sails, Help you to create Rails style Thrift Server
142
141
  test_files:
143
142
  - spec/cli_spec.rb
144
- - spec/dummy/log/development.log
145
143
  - spec/rails_spec.rb
146
144
  - spec/sails_spec.rb
147
145
  - spec/service/base_spec.rb