slashjoin 0.0.2 → 0.0.2.1
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.
- data/FAQ.ja.md +26 -0
- data/LICENSE.md +49 -0
- data/lib/slashjoin/version.rb +1 -1
- data/slashjoin.gemspec +1 -1
- metadata +6 -5
- data/LICENSE.txt +0 -22
data/FAQ.ja.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Fuck
|
2
|
+
====
|
3
|
+
|
4
|
+
挙動がをかしいんだけど
|
5
|
+
----------------------
|
6
|
+
|
7
|
+
この gem は `URI`, `Pathname` クラスの `join` メソッドに *完全に* 依存します。
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
("https://github.com" / "megurine" ).to_s
|
11
|
+
# => "https://github.com/megurine"
|
12
|
+
```
|
13
|
+
|
14
|
+
この結果はまったく期待通りだと思ひます。
|
15
|
+
|
16
|
+
しかし次の式は期待するものと違ふのではないでせうか。
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
("https://github.com" / "megurine" / "foobar").to_s
|
20
|
+
# => "https://github.com/foobar"
|
21
|
+
|
22
|
+
# slashjoin を
|
23
|
+
URI.join("http://github.com", "megurine", "foobar")
|
24
|
+
# => "https://github.com/foobar"
|
25
|
+
```
|
26
|
+
|
data/LICENSE.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
LICENSE
|
2
|
+
=======
|
3
|
+
|
4
|
+
`slashjoin-gem` is released under **GPL version 3** and **NYSL** (dual license).
|
5
|
+
You can select either **GPL** or **NYSL** or *both** .
|
6
|
+
Do you think that I should release it under **MIT like License** ?
|
7
|
+
That's right. But, I give the rights that *NYSL* is more than it in *MIT License* .
|
8
|
+
|
9
|
+
GPLv3
|
10
|
+
-----
|
11
|
+
|
12
|
+
> Copyright (C) 2012 Kusami, USAMI Kenta <<tadsan@zonu.me>>
|
13
|
+
>
|
14
|
+
> This program is free software: you can redistribute it and/or modify
|
15
|
+
> it under the terms of the GNU General Public License as published by
|
16
|
+
> the Free Software Foundation, either version 3 of the License, or
|
17
|
+
> (at your option) any later version.
|
18
|
+
>
|
19
|
+
> This program is distributed in the hope that it will be useful,
|
20
|
+
> but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21
|
+
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22
|
+
> GNU General Public License for more details.
|
23
|
+
>
|
24
|
+
> You should have received a copy of the GNU General Public License
|
25
|
+
> along with this program. If not, see <http://www.gnu.org/licenses/>.
|
26
|
+
|
27
|
+
NYSL
|
28
|
+
----
|
29
|
+
|
30
|
+
> A. 本ソフトウェアは Everyone'sWare です。このソフトを手にした一人一人が、
|
31
|
+
> ご自分の作ったものを扱うのと同じように、自由に利用することが出来ます。
|
32
|
+
>
|
33
|
+
> A-1. フリーウェアです。作者からは使用料等を要求しません。
|
34
|
+
> A-2. 有料無料や媒体の如何を問わず、自由に転載・再配布できます。
|
35
|
+
> A-3. いかなる種類の 改変・他プログラムでの利用 を行っても構いません。
|
36
|
+
> A-4. 変更したものや部分的に使用したものは、あなたのものになります。
|
37
|
+
> 公開する場合は、あなたの名前の下で行って下さい。
|
38
|
+
>
|
39
|
+
> B. このソフトを利用することによって生じた損害等について、作者は
|
40
|
+
> 責任を負わないものとします。各自の責任においてご利用下さい。
|
41
|
+
>
|
42
|
+
> C. 著作者人格権は うさみけんた(tadsan/Zonu.EXE) に帰属します。
|
43
|
+
> 著作権は放棄します。
|
44
|
+
>
|
45
|
+
> D. 以上の3項は、ソース・実行バイナリの双方に適用されます。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
data/lib/slashjoin/version.rb
CHANGED
data/slashjoin.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["tadsan@zonu.me"]
|
11
11
|
gem.description = %q{add String#/ method, do {file|URI} path join}
|
12
12
|
gem.summary = %q{atode kaku.}
|
13
|
-
gem.homepage =
|
13
|
+
gem.homepage = 'https://github.com/zonuexe/ruby-slashjoin'
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slashjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2
|
4
|
+
version: 0.0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: add String#/ method, do {file|URI} path join
|
15
15
|
email:
|
@@ -19,8 +19,9 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- .gitignore
|
22
|
+
- FAQ.ja.md
|
22
23
|
- Gemfile
|
23
|
-
- LICENSE.
|
24
|
+
- LICENSE.md
|
24
25
|
- README.md
|
25
26
|
- Rakefile
|
26
27
|
- lib/slashjoin.rb
|
@@ -37,7 +38,7 @@ files:
|
|
37
38
|
- spec/slashjoin_spec.rb
|
38
39
|
- spec/spec_helper.rb
|
39
40
|
- spec/wcwidth_spec.rb
|
40
|
-
homepage:
|
41
|
+
homepage: https://github.com/zonuexe/ruby-slashjoin
|
41
42
|
licenses: []
|
42
43
|
post_install_message:
|
43
44
|
rdoc_options: []
|
@@ -57,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
60
|
rubyforge_project:
|
60
|
-
rubygems_version: 1.8.
|
61
|
+
rubygems_version: 1.8.25
|
61
62
|
signing_key:
|
62
63
|
specification_version: 3
|
63
64
|
summary: atode kaku.
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 USAMI Kenta
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|