workspace-parse 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/workspace-parse.rb +17 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6292afc6b2eddfeec1d3d9a651131161cc2a5355
|
4
|
+
data.tar.gz: 2ebc45f6d79e903ffde6d56d01cbf648faecbd10
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a2382c25bf6edb3654abded25a9b720ae60ef625e18ec42811cfbd5a7befc5a57b71e6217d629a4b67bd695bcd164bbfca7705f6cb17ea978914e0a9daf6ba9e
|
7
|
+
data.tar.gz: b109eb65a00ab294e5031322447273b73b6e589318a7e2266ade52e415778b5423b0f49808ca72ba9fbb27d1735e0c973f381ff4cfb9ca1e73ad2f1cb433e3ba
|
data/workspace-parse.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "haml"
|
2
|
+
module Workspace
|
3
|
+
class File
|
4
|
+
def read_json
|
5
|
+
JSON.parse(read)
|
6
|
+
end
|
7
|
+
|
8
|
+
def read_yaml
|
9
|
+
Psych.load_file(to_s)
|
10
|
+
end
|
11
|
+
|
12
|
+
def read_haml(options = {})
|
13
|
+
engine = Haml::Engine.new(read)
|
14
|
+
engine.render(Object.new, options)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: workspace-parse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tobias Strebitzer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: workspace
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: haml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
41
|
+
description: Workspace makes it a breeze to work with files and directories
|
42
|
+
email:
|
43
|
+
- tobias.strebitzer@magloft.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- workspace-parse.rb
|
49
|
+
homepage: https://github.com/magloft/workspace
|
50
|
+
licenses:
|
51
|
+
- BSD-3-Clause
|
52
|
+
metadata: {}
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- "."
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.4'
|
67
|
+
requirements: []
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 2.6.10
|
70
|
+
signing_key:
|
71
|
+
specification_version: 4
|
72
|
+
summary: Workspace gem extension to allow parsing of various formats like json and
|
73
|
+
yaml
|
74
|
+
test_files: []
|