openwrt-luci 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ef6eba252992a3bda94b27dcb4732e8823e7b4b349462d1b4bf403ef84374642
4
+ data.tar.gz: d016d7f9eba2274d037f412df63a95dfae8e509b3248eb294715734685ebd9ac
5
+ SHA512:
6
+ metadata.gz: b010e707844633837bc2bc6083563f1a9caea6bde0cfef6bcd3a667f6b07a32cca1d48d4bd87230e0cf1ed23b4bad8c76387f8ffb22ad2ab7dc0055720ef70f8
7
+ data.tar.gz: a36eb7ee3520d7293cec299003207368ab8bde23cbef1779718f14e7480618981e4c7ba8726b22404889c60433a84d59effe83c1d0b812761868808618d8d5f3
data/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at contact@jasonchalom.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/TRex22/openwrt-luci" }
4
+
5
+ # Specify your gem's dependencies in openwrt-luci.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,101 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ openwrt-luci (0.0.1)
5
+ active_attr (~> 0.16.0)
6
+ httparty (~> 0.22.0)
7
+ nokogiri (~> 1.16.5)
8
+ oj (~> 3.16.3)
9
+ pry (~> 0.14.2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (7.1.3.3)
15
+ actionview (= 7.1.3.3)
16
+ activesupport (= 7.1.3.3)
17
+ nokogiri (>= 1.8.5)
18
+ racc
19
+ rack (>= 2.2.4)
20
+ rack-session (>= 1.0.1)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.2)
23
+ rails-html-sanitizer (~> 1.6)
24
+ actionview (7.1.3.3)
25
+ activesupport (= 7.1.3.3)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.11)
28
+ rails-dom-testing (~> 2.2)
29
+ rails-html-sanitizer (~> 1.6)
30
+ active_attr (0.16.0)
31
+ actionpack (>= 3.0.2, < 7.2)
32
+ activemodel (>= 3.0.2, < 7.2)
33
+ activesupport (>= 3.0.2, < 7.2)
34
+ activemodel (7.1.3.3)
35
+ activesupport (= 7.1.3.3)
36
+ activesupport (7.1.3.3)
37
+ base64
38
+ bigdecimal
39
+ concurrent-ruby (~> 1.0, >= 1.0.2)
40
+ connection_pool (>= 2.2.5)
41
+ drb
42
+ i18n (>= 1.6, < 2)
43
+ minitest (>= 5.1)
44
+ mutex_m
45
+ tzinfo (~> 2.0)
46
+ base64 (0.2.0)
47
+ bigdecimal (3.1.8)
48
+ builder (3.2.4)
49
+ coderay (1.1.3)
50
+ concurrent-ruby (1.2.3)
51
+ connection_pool (2.4.1)
52
+ crass (1.0.6)
53
+ csv (3.3.0)
54
+ drb (2.2.1)
55
+ erubi (1.12.0)
56
+ httparty (0.22.0)
57
+ csv
58
+ mini_mime (>= 1.0.0)
59
+ multi_xml (>= 0.5.2)
60
+ i18n (1.14.5)
61
+ concurrent-ruby (~> 1.0)
62
+ loofah (2.22.0)
63
+ crass (~> 1.0.2)
64
+ nokogiri (>= 1.12.0)
65
+ method_source (1.1.0)
66
+ mini_mime (1.1.5)
67
+ minitest (5.23.1)
68
+ multi_xml (0.7.1)
69
+ bigdecimal (~> 3.1)
70
+ mutex_m (0.2.0)
71
+ nokogiri (1.16.5-arm64-darwin)
72
+ racc (~> 1.4)
73
+ oj (3.16.3)
74
+ bigdecimal (>= 3.0)
75
+ pry (0.14.2)
76
+ coderay (~> 1.1)
77
+ method_source (~> 1.0)
78
+ racc (1.8.0)
79
+ rack (3.0.11)
80
+ rack-session (2.0.0)
81
+ rack (>= 3.0.0)
82
+ rack-test (2.1.0)
83
+ rack (>= 1.3)
84
+ rails-dom-testing (2.2.0)
85
+ activesupport (>= 5.0.0)
86
+ minitest
87
+ nokogiri (>= 1.6)
88
+ rails-html-sanitizer (1.6.0)
89
+ loofah (~> 2.21)
90
+ nokogiri (~> 1.14)
91
+ tzinfo (2.0.6)
92
+ concurrent-ruby (~> 1.0)
93
+
94
+ PLATFORMS
95
+ arm64-darwin
96
+
97
+ DEPENDENCIES
98
+ openwrt-luci!
99
+
100
+ BUNDLED WITH
101
+ 2.5.10
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Jason Chalom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Jason Chalom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # OpenwrtLuci
2
+ API Client to communicate with OpenWRT via the Luci interface
3
+
4
+ This is an unofficial project and still a work in progress (WIP) ... more to come soon.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'openwrt-luci'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install openwrt-luci
21
+
22
+ ## Usage
23
+
24
+ ```ruby
25
+ require 'openwrt-luci'
26
+ client = OpenwrtLuci::Client.new(base_path: "http://192.168.0.1", port: 80, username: 'your username', password: 'your password', verify_ssl: false)
27
+ client.backup # Return backup file as a stream
28
+
29
+ # verify_ssl is used if the controller has SSL configured
30
+ ```
31
+
32
+ ### Endpoints
33
+ - Login
34
+ - Backup
35
+
36
+ ## Development
37
+
38
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
39
+
40
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+
42
+ ### Tests
43
+ To run tests execute:
44
+
45
+ $ rake test
46
+
47
+ ## Contributing
48
+
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/trex22/openwrt-luci. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
54
+
55
+ ## Code of Conduct
56
+
57
+ Everyone interacting in the openwrt-luci: project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/trex22/openwrt-luci/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "openwrt-luci"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ require "pry"
11
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,161 @@
1
+ module OpenwrtLuci
2
+ class Client
3
+ # include HTTParty_with_cookies
4
+
5
+ LOGIN_PATH = '/cgi-bin/luci'
6
+ BACKUP_PATH = '/cgi-bin/cgi-backup'
7
+
8
+ attr_reader :username,
9
+ :password,
10
+ :base_path,
11
+ :port,
12
+ :raw_cookie,
13
+ :sessionid,
14
+ :token,
15
+ :verify_ssl
16
+
17
+ def initialize(username:, password:, base_path:, port: 8443, verify_ssl: false)
18
+ @username = username
19
+ @password = password
20
+ @base_path = base_path
21
+ @port = port
22
+ @verify_ssl = verify_ssl
23
+ end
24
+
25
+ def self.compatible_api_version
26
+ 'v1'
27
+ end
28
+
29
+ # This is the version of the API docs this client was built off-of
30
+ def self.api_version
31
+ 'v1 2024-05-28'
32
+ end
33
+
34
+ def backup
35
+ start_time = get_micro_second_time
36
+
37
+ login unless raw_cookie
38
+
39
+ response = HTTParty.send(
40
+ :post,
41
+ "#{base_path}:#{port}#{BACKUP_PATH}",
42
+ body: "sessionid=#{sessionid}",
43
+ port: port,
44
+ verify: verify_ssl
45
+ )
46
+
47
+ end_time = get_micro_second_time
48
+ construct_response_stream(response, start_time, end_time)
49
+ end
50
+
51
+ def login
52
+ start_time = get_micro_second_time
53
+
54
+ response = HTTParty.send(
55
+ :post,
56
+ "#{base_path}:#{port}#{LOGIN_PATH}",
57
+ body: "luci_username=#{username}&luci_password=#{password}",
58
+ port: port,
59
+ verify: verify_ssl
60
+ )
61
+
62
+ end_time = get_micro_second_time
63
+
64
+ @login_response = construct_response_object(response, LOGIN_PATH, start_time, end_time)
65
+
66
+ @token = response.body[/(token\": \")\w+/].split("token\": \"").last
67
+ @sessionid = response.body[/(sessionid\": \")\w+/].split("sessionid\": \"").last
68
+ @raw_cookie = { token: token, sessionid: sessionid }
69
+ end
70
+
71
+ private
72
+
73
+ def construct_response_object(response, path, start_time, end_time)
74
+ {
75
+ 'body' => response.body,
76
+ 'headers' => response.headers,
77
+ 'metadata' => construct_metadata(response, start_time, end_time)
78
+ }
79
+ end
80
+
81
+ def construct_response_stream(response, start_time, end_time)
82
+ {
83
+ 'body' => response.body,
84
+ 'headers' => response.headers,
85
+ 'metadata' => construct_metadata(response, start_time, end_time)
86
+ }
87
+ end
88
+
89
+ def construct_metadata(response, start_time, end_time)
90
+ total_time = end_time - start_time
91
+
92
+ {
93
+ 'start_time' => start_time,
94
+ 'end_time' => end_time,
95
+ 'total_time' => total_time
96
+ }
97
+ end
98
+
99
+ def body_is_present?(response)
100
+ !body_is_missing?(response)
101
+ end
102
+
103
+ def body_is_missing?(response)
104
+ response.body.nil? || response.body.empty?
105
+ end
106
+
107
+ def parse_body(response, path)
108
+ html_body = response.body
109
+ doc = Nokogiri::HTML(html_body)
110
+
111
+
112
+ # TODO:
113
+ rescue Oj::LoadError => _e
114
+ response.body
115
+ end
116
+
117
+ def parse_cookie(set_cookie_str, key)
118
+ value = nil
119
+ expiry = nil
120
+
121
+ set_cookie_str.each do |item|
122
+ if item.include?(key)
123
+ value = item.split('; ').first.split('=').last
124
+
125
+ if item.include?('Expires') || item.include?('expires')
126
+ item.split('; ').each do |sub_item|
127
+ if sub_item.include?('Expires') || sub_item.include?('expires')
128
+ expiry = Time.parse(sub_item.gsub('expires=', '').gsub('Expires=', ''))
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
134
+
135
+ [value, expiry]
136
+ end
137
+
138
+ def process_cookies
139
+ # Cookies are always a single string separated by spaces
140
+ raw_cookie.map { |item| item.split('; ').first }.join('; ')
141
+ end
142
+
143
+ def get_micro_second_time
144
+ (Time.now.to_f * 1000000).to_i
145
+ end
146
+
147
+ def construct_base_path(path, params)
148
+ constructed_path = "#{base_path}/#{path}"
149
+
150
+ if params == {}
151
+ constructed_path
152
+ else
153
+ "#{constructed_path}?#{process_params(params)}"
154
+ end
155
+ end
156
+
157
+ def process_params(params)
158
+ params.keys.map { |key| "#{key}=#{params[key]}" }.join('&')
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,3 @@
1
+ module OpenwrtLuci
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,11 @@
1
+ require 'httparty'
2
+ # require 'httparty_with_cookies'
3
+ require 'nokogiri'
4
+ require 'oj'
5
+
6
+ require 'openwrt-luci/version'
7
+ require 'openwrt-luci/client'
8
+
9
+ module OpenwrtLuci
10
+ class Error < StandardError; end
11
+ end
@@ -0,0 +1,34 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "openwrt-luci/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "openwrt-luci"
7
+ spec.version = OpenwrtLuci::VERSION
8
+ spec.authors = ["trex22"]
9
+ spec.email = ["contact@jasonchalom.com"]
10
+
11
+ spec.summary = "API Client to communicate with OpenWRT via the Luci interface"
12
+ spec.description = "API Client to communicate with OpenWRT via the Luci interface. This is an unofficial project."
13
+ spec.homepage = "https://github.com/TRex22/openwrt-luci"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_dependency "httparty", "~> 0.22.0"
27
+ spec.add_dependency "active_attr", "~> 0.16.0"
28
+ spec.add_dependency "nokogiri", "~> 1.16.5"
29
+ spec.add_dependency "oj", "~> 3.16.3"
30
+
31
+ # Development dependancies
32
+ spec.add_dependency "pry", "~> 0.14.2"
33
+ # TODO:
34
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openwrt-luci
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - trex22
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.22.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.22.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: active_attr
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.16.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.16.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.16.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.16.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: oj
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.16.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.16.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.14.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.14.2
83
+ description: API Client to communicate with OpenWRT via the Luci interface. This is
84
+ an unofficial project.
85
+ email:
86
+ - contact@jasonchalom.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/openwrt-luci.rb
102
+ - lib/openwrt-luci/client.rb
103
+ - lib/openwrt-luci/version.rb
104
+ - openwrt-luci.gemspec
105
+ homepage: https://github.com/TRex22/openwrt-luci
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubygems_version: 3.5.9
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: API Client to communicate with OpenWRT via the Luci interface
128
+ test_files: []