faster_path 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84e796cda8b8704b7a6f5e2a2e69acc012f611b66f89642f34149f88c645ae34
4
- data.tar.gz: 8b20ae9b2bcaebaf44dbc56500ad539e5082169d729a24685c0c9a446ee4dd6b
3
+ metadata.gz: 4f424e30f95784fca0f8a926ed9fcc1bf685b9d9a7e19ffbd8f469db470ab231
4
+ data.tar.gz: f8ae55e8ffd704212b9c5dfa155bbed7599b494f0c628dd5d5815e018baf9a90
5
5
  SHA512:
6
- metadata.gz: '091d419f3c849b46f493a3ae47fcf59d064c83ffec898856032ffa47d84e68ace558e882437f95a662bd84b77cdbe0182f7b62c5cd1316fd250a54d49afe3046'
7
- data.tar.gz: ecbdcad442c08c9eee827f30672f585f34450e0b4a72905936fe49a7eb251a7e8c461a0a5fcaa10d19a1e36ef304ada0b8b8f1bff1d0cab31017bad35ddd3743
6
+ metadata.gz: b40f9b24736616516f4ebad5d23532e63be150bedcb47d57a9f8eca488b7ec1844748c9a058d6345d6059a0fde72dafa75e4fcad0be62a065bf926924156cf31
7
+ data.tar.gz: cb1d557b873d1cf64a8b30754c5e53dc7fa18da2b35993a65af2aaf6017b81d9f3f1413cc9ac26ea012a9879a80a07e7988b5a3536b5ceb90b82e2bd0c399cdf
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![TravisCI Build Status](https://travis-ci.org/danielpclark/faster_path.svg?branch=master)](https://travis-ci.org/danielpclark/faster_path)
4
4
  [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/10ul0gk3cwhlt2lj/branch/master?svg=true)](https://ci.appveyor.com/project/danielpclark/faster-path/branch/master)
5
5
  [![Latest Tag](https://img.shields.io/github/tag/danielpclark/faster_path.svg)](https://github.com/danielpclark/faster_path/tags)
6
- [![Commits Since Last Release](https://img.shields.io/github/commits-since/danielpclark/faster_path/v0.3.1.svg)](https://github.com/danielpclark/faster_path/pulse)
6
+ [![Commits Since Last Release](https://img.shields.io/github/commits-since/danielpclark/faster_path/v0.3.2.svg)](https://github.com/danielpclark/faster_path/pulse)
7
7
  [![Binary Release](https://img.shields.io/github/release/danielpclark/faster_path.svg)](https://github.com/danielpclark/faster_path/releases)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/danielpclark/faster_path/badge.svg)](https://coveralls.io/github/danielpclark/faster_path)
9
9
  [![Inline docs](http://inch-ci.org/github/danielpclark/faster_path.svg?branch=master)](http://inch-ci.org/github/danielpclark/faster_path)
@@ -115,7 +115,7 @@ curl -sSf https://static.rust-lang.org/rustup.sh | sh
115
115
  Add this line to your application's Gemfile:
116
116
 
117
117
  ```ruby
118
- gem 'faster_path', '~> 0.3.1'
118
+ gem 'faster_path', '~> 0.3.2'
119
119
  ```
120
120
 
121
121
  And then execute:
@@ -1,3 +1,3 @@
1
1
  module FasterPath
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/src/helpers.rs CHANGED
@@ -1,6 +1,12 @@
1
1
  use ruru::{RString, Object, Class, AnyObject};
2
2
  use debug::RubyDebugInfo;
3
3
 
4
+ pub trait TryFrom<T>: Sized {
5
+ type Error;
6
+
7
+ fn try_from(value: T) -> Result<Self, Self::Error>;
8
+ }
9
+
4
10
  #[inline]
5
11
  pub fn is_same_path(a: &str, b: &str) -> bool {
6
12
  if cfg!(windows) {
data/src/lib.rs CHANGED
@@ -4,8 +4,6 @@
4
4
  // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5
5
  // http://opensource.org/licenses/MIT>, at your option. This file may not be
6
6
  // copied, modified, or distributed except according to those terms.
7
- #![feature(try_from)]
8
-
9
7
  #[macro_use]
10
8
  extern crate ruru;
11
9
 
data/src/pathname.rs CHANGED
@@ -8,7 +8,7 @@ use extname;
8
8
  use plus;
9
9
  use relative_path_from;
10
10
  use debug;
11
- use std::convert::TryFrom;
11
+ use helpers::TryFrom;
12
12
 
13
13
  use ruru;
14
14
  use ruru::{
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faster_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
@@ -155,7 +155,6 @@ files:
155
155
  - ext/Rakefile
156
156
  - faster_path.gemspec
157
157
  - lib/faster_path.rb
158
- - lib/faster_path.so
159
158
  - lib/faster_path/optional/monkeypatches.rb
160
159
  - lib/faster_path/optional/refinements.rb
161
160
  - lib/faster_path/version.rb
data/lib/faster_path.so DELETED
Binary file