tilt-fs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 02ce198c6409d6708884ac010f4f0f365530ac65
4
- data.tar.gz: 32ddf32e300c64f8237ad7261d1e70c388823ae7
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjIzODAxNDRmN2YzMmQyNjBlNDdkMDEzNDllN2NkY2EzY2Y4ODQ2Yg==
5
+ data.tar.gz: !binary |-
6
+ NDIxOTdlYzYzOWI3NDgyM2RiNzUzNTI0ZWIzYTk4NGY3ZjkwMzA4YQ==
5
7
  SHA512:
6
- metadata.gz: 91eff9cdcd9010e0e014f19a9a464bb3802d8d2c6e5613507e3c8a73f350c3ad939c58d247286de7b17d93d354c0beafde1d55ed3f4e5853f1800a6b9d3bc770
7
- data.tar.gz: 96d674b8f910fd9e17b1fbe10c7e97db7c34f93cd2c41648cd70897a0d1e68c48d55f339f63b024cc71d28da13b956c4475a8e1c005c12316cecfb1fb948e6a4
8
+ metadata.gz: !binary |-
9
+ MzUwZWI0M2U3MzQxZThmNDQ0ZTBmMjI3YTE2ZTg1NmQ0NTBhMmZiYmVmZGQ1
10
+ MjA4ZTkxY2UzYjE3OTM3MzZiMTVjMmRhOGNlMjBjMjhmMzFiOGM5MmM0MmYy
11
+ M2Y0MjQ3MDBkMGVmN2U2NjhiNDUwYTdjMGQ1MTA4MGYzOWM5ODQ=
12
+ data.tar.gz: !binary |-
13
+ ODg0NGM2OTZlYWJlNzUyMGQwNzYzNjdhYzE0YzViM2U2NzA5Yzg1Yjk4MGE3
14
+ ZGZlMjYyN2U3YzY3Y2Y3YjE5ODQ1M2E0ZmNmZTFkODQ1NTBlNGM0MGU2NjQ2
15
+ MjRjZWI4ZDg0MTFkOTMzNWQ0YTM2Y2IxNzYzMzI5ZDBmZDg2MjQ=
data/.travis.yml CHANGED
@@ -3,14 +3,23 @@ language: ruby
3
3
  rvm:
4
4
  - "2.1"
5
5
  - "2.0"
6
- - "1.9"
7
6
 
8
7
  bundler_args: "--jobs 4"
9
8
 
10
- sudo: false
9
+ before_install:
10
+ - sudo apt-get update -y
11
+ - sudo apt-get install -y libfuse-dev
11
12
 
12
13
  script:
13
14
  - bundle exec rake test
14
15
 
15
16
  cache:
16
- bundler: true
17
+ bundler: true
18
+
19
+ deploy:
20
+ provider: rubygems
21
+ api_key:
22
+ master:
23
+ secure: "amo7UuG6aN84wNKyUw1FjXjzVsB9tLNa4k81TAhGsRqOuPl7GvFhfgfN+yUIdRnaJqz+me8DXj2jwMV5PH7b2ZlEAX+jhobdI2BrAHf/ZWTHrEamLkBlbHKfo9y5R5MaeChfiMxONFqeli1ulHmR/Buz/gtBLYlyLoJ6VeScI7k="
24
+ gem:
25
+ master: "tilt-fs"
data/README.md CHANGED
@@ -8,24 +8,40 @@ The user space file system based on [Tilt](https://github.com/rtomayko/tilt).
8
8
 
9
9
  ## Usage
10
10
 
11
- ### 1. Run the filesystem
11
+ ### 1. Mount the filesystem
12
12
 
13
- $ cd {some_dir}
14
- $ mkdir _template
15
- $ mkdir mnt
16
- $ echo 'Hello, <%= name %>' > _template/hello.txt.erb
17
- $ tiltfs mnt/ _template/
18
- -> Mount "_template" into "mnt"
13
+ ```bash
14
+ $ cd {some_dir}
15
+ $ mkdir _template
16
+ $ mkdir mnt
17
+ $ echo 'Hello, <%= name %>' > _template/hello.txt
18
+ $ tiltfs mnt/ _template/
19
+ -> Mount "_template" into "mnt"
20
+ ```
19
21
 
20
22
  ### 2. Access to the files
21
23
 
22
- $ cd {some_dir}
23
- $ ruby -r yaml -e "puts({name: "world"}.to_yaml)" > .data.yaml
24
- $ cat mnt/hello.txt
25
- Hello, world
26
- $ ruby -r yaml -e "puts({name: "NEW WORLD"}.to_yaml)" > .data.yaml
27
- $ cat mnt/hello.txt
28
- Hello, NEW WORLD
24
+ ```bash
25
+ $ cd {some_dir}
26
+ $ cat mnt/hello.txt
27
+ Hello, <%= name %>
28
+ $
29
+ $ mv _template/hello.txt _template/hello.txt.erb
30
+ $ ruby -r yaml -e "puts({name: "world"}.to_yaml)" > .data.yaml
31
+ $ cat mnt/hello.txt
32
+ Hello, world
33
+ $
34
+ $ ruby -r yaml -e "puts({name: "NEW WORLD"}.to_yaml)" > .data.yaml
35
+ $ cat mnt/hello.txt
36
+ Hello, NEW WORLD
37
+ ```
38
+
39
+ ### 3. Unmount the filesystem
40
+
41
+ ```bash
42
+ $ cd {some_dir}
43
+ $ fusermount -u mnt/
44
+ ```
29
45
 
30
46
  ## Contributing
31
47
 
@@ -2,6 +2,7 @@ module Tilt::Fs::FileSystem
2
2
 
3
3
  require "tilt"
4
4
  require "yaml"
5
+ require "pathname"
5
6
 
6
7
  require "tilt/fs/file_system/core"
7
8
  require "tilt/fs/file_system/dir"
@@ -2,7 +2,7 @@ module Tilt
2
2
 
3
3
  module Fs
4
4
 
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
 
7
7
  end
8
8
 
data/test/test_dir.rb CHANGED
@@ -16,7 +16,7 @@ class TestDir < Test::Unit::TestCase
16
16
  test "dir#search()" do
17
17
  FileUtils.mkdir_p "/path/to"
18
18
  FileUtils.touch "/path/to/hello"
19
- dir = Tilt::Fs::FileSystem::Dir.new("/path/to")
19
+ dir = Tilt::Fs::FileSystem::Dir.new("/path/to", nil)
20
20
  assert_equal 1, dir.search("/hello").length
21
21
  end
22
22
 
data/tilt-fs.gemspec CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = ">= 2.0.0"
22
+
21
23
  spec.add_dependency "tilt", "~> 2.0"
22
24
  spec.add_dependency "rfuse", "~> 1.1.0.RC0"
23
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt-fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sano
@@ -14,98 +14,98 @@ dependencies:
14
14
  name: tilt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rfuse
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.0.RC0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.0.RC0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.7.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.7.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 10.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 10.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: test-unit
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 3.0.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.0.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fakefs
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.6.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.6.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry-byebug
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.0.0
111
111
  description: The user space file system based on Tilt.
@@ -116,8 +116,8 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - ".gitignore"
120
- - ".travis.yml"
119
+ - .gitignore
120
+ - .travis.yml
121
121
  - Gemfile
122
122
  - LICENSE.txt
123
123
  - README.md
@@ -144,12 +144,12 @@ require_paths:
144
144
  - lib
145
145
  required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ">="
147
+ - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: 2.0.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">="
152
+ - - ! '>='
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []