mbdb 0.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 42d66acac960d883c6e68f4e52b032801e10e182
4
+ data.tar.gz: e9d8cd356bfde9185c58fcaf8fafb9ab8538f64b
5
+ SHA512:
6
+ metadata.gz: bbbce8f198d7d3af4473aabd263e4f1ebe7b34173aeb13fbb4a768dd99b30f432213675b4472b4ae027917a6c28cecf6fc73d3c614d4c2388fc5c793950fcc4b
7
+ data.tar.gz: ac60ddeafa1c8ffa64eee7708255857f0555cd7febfba226a9704d1e05be1fff2312716280b00b99b9121dd16612a46b80fec75b657471d660bcf52c5891961a
data/.ackrc ADDED
@@ -0,0 +1,6 @@
1
+
2
+ --type=ruby
3
+ --type=yaml
4
+
5
+ --ignore-dir=.bundle
6
+ --ignore-dir=releases
data/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = tab
7
+ indent_size = 4
8
+ end_of_line = lf
9
+ charset = utf-8
10
+ trim_trailing_whitespace = false
11
+ insert_final_newline = true
12
+
13
+ [*.yml]
14
+ indent_style = space
15
+ indent_size = 4
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ /.bundle/
2
+ .setup
3
+ CHANGELOG-*.txt
4
+ /coverage/
5
+ Gemfile.lock
6
+ /releases/
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,47 @@
1
+ before_script:
2
+ - gem update --system
3
+ - gem install bundler -v '~>1.13'
4
+ - bundler --version
5
+ - make
6
+
7
+ stages:
8
+ - test
9
+ - release
10
+
11
+ test_21:
12
+ image: ruby:2.1
13
+ stage: test
14
+ environment: test
15
+ only:
16
+ - tags
17
+ script:
18
+ - make test
19
+
20
+ test_22:
21
+ image: ruby:2.2
22
+ stage: test
23
+ environment: test
24
+ only:
25
+ - tags
26
+ script:
27
+ - make test
28
+
29
+ test_23:
30
+ image: ruby:2.3
31
+ stage: test
32
+ environment: test
33
+ only:
34
+ - tags
35
+ script:
36
+ - make test
37
+
38
+ release_gem:
39
+ image: ruby:2.3
40
+ stage: release
41
+ environment: gem
42
+ only:
43
+ - tags
44
+ script:
45
+ - mkdir -p ~/.gem
46
+ - 'printf "%s\n:rubygems_api_key: %s" "---" "${RUBYGEMSORG_API_KEY}" > ~/.gem/credentials; chmod 0600 ~/.gem/credentials'
47
+ - make release
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3
6
+ - ruby-2.4.0-preview2
7
+ - ruby-head
8
+ sudo: required
9
+ before_install:
10
+ - gem update --system
11
+ - gem install bundler -v '~>1.13'
12
+ - bundler --version
13
+ install:
14
+ - make
15
+ - gem build mbdb.gemspec
16
+ - gem install mbdb-*.gem
17
+ - gem list -l mbdb
18
+ script:
19
+ - make test
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+
2
+ source 'https://rubygems.org'
3
+ gemspec
data/Makefile ADDED
@@ -0,0 +1,20 @@
1
+
2
+ GEM_NAME = mbdb
3
+
4
+ include Makefile.common
5
+
6
+ .PHONY: dev
7
+ dev:
8
+ $(BUNDLER) exec ./bin/dev
9
+
10
+ .PHONY: test
11
+ test:
12
+ RUBYOPT=-w $(BUNDLER) exec ./test/suite_all.rb
13
+
14
+ .PHONY: cov
15
+ cov:
16
+ RUBYOPT=-w COVERAGE=1 $(BUNDLER) exec ./test/suite_all.rb -v
17
+
18
+ .PHONY: cov_local
19
+ cov_local:
20
+ RUBYOPT=-w SIMPLECOV_PHPUNIT_LOAD_PATH=../simplecov-phpunit COVERAGE=1 $(BUNDLER) exec ./test/suite_all.rb -v
data/Makefile.common ADDED
@@ -0,0 +1,58 @@
1
+
2
+ # Ruby Common Big 2016-11-08
3
+
4
+ MV = mv -nv
5
+ RM = rm -rfd
6
+ MKDIR = mkdir -p
7
+ CHMOD = chmod
8
+ BUNDLER = bundler
9
+ BUNDLER_OPTIONS = --jobs=5 --retry=3
10
+ GEMSPEC_FILE = $(GEM_NAME).gemspec
11
+
12
+ .PHONY: all
13
+ all: setup $(ALL_TARGETS_EXT)
14
+
15
+ .PHONY: setup
16
+ setup: .setup
17
+
18
+ .setup:
19
+ which ruby &> /dev/null
20
+ which $(BUNDLER) &> /dev/null
21
+ ruby -v
22
+ $(BUNDLER) install $(BUNDLER_OPTIONS)
23
+ touch $@
24
+
25
+ .PHONY: install
26
+ install:
27
+ gem_file=$$(gem build $(GEMSPEC_FILE) 2> /dev/null | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
28
+ gem install $$gem_file; \
29
+ $(RM) $$gem_file
30
+
31
+ .PHONY: uninstall
32
+ uninstall:
33
+ gem uninstall $(GEM_NAME)
34
+
35
+ .PHONY: update
36
+ update:
37
+ $(BUNDLER) update
38
+
39
+ .PHONY: clean
40
+ clean:
41
+ $(RM) .bundle .setup Gemfile.lock
42
+
43
+ .PHONY: release
44
+ release: | releases
45
+ set -e; \
46
+ gem_file=$$(gem build $(GEMSPEC_FILE) | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
47
+ dst="releases/$$gem_file"; \
48
+ [ ! -f $$dst ]; \
49
+ $(MV) $$gem_file releases; \
50
+ gem push $$dst; \
51
+ echo 'done'
52
+
53
+ releases:
54
+ $(MKDIR) $@
55
+
56
+ tmp:
57
+ $(MKDIR) $@
58
+ $(CHMOD) u=rwx,go-rwx $@
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # MBDB.rb
2
+
3
+ Read `.mbdb` files with Ruby.
4
+
5
+ The `.mbdb` file extension is associated with the Apple iTunes, the standard manage application for iOS devices. A `.mbdb` file contains a list of files, that are stored in the backup of the iOS device. The MBDB database was introduced in iTunes 9.2.
6
+
7
+ ## Install
8
+
9
+ The preferred method of installation is via RubyGems.org:
10
+ <https://rubygems.org/gems/mbdb>
11
+
12
+ gem install mbdb
13
+
14
+ or via `Gemfile`:
15
+
16
+ gem 'mbdb', '~>0.0'
17
+
18
+ Use it in your sources:
19
+
20
+ require 'mbdb'
21
+
22
+ ## Project Links
23
+
24
+ - [Gem](https://rubygems.org/gems/mbdb)
25
+ - [Travis CI Repository](https://travis-ci.org/TheFox/mbdb.rb)
26
+
27
+ ## License
28
+
29
+ Copyright (C) 2016 Christian Mayer <https://fox21.at>
30
+
31
+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
32
+
33
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
data/bin/dev ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'pp'
4
+ require 'pry'
5
+
6
+ include TheFox::MBDB
7
+
8
+ binding.pry
data/lib/mbdb.rb ADDED
@@ -0,0 +1,2 @@
1
+
2
+ require 'mbdb/version'
@@ -0,0 +1,8 @@
1
+
2
+ module TheFox
3
+ module MBDB
4
+ VERSION = '0.0.0'
5
+ DATE = '2016-11-08'
6
+ HOMEPAGE = 'https://github.com/TheFox/mbdb.rb'
7
+ end
8
+ end
data/mbdb.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: UTF-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require 'mbdb/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = 'mbdb'
10
+ spec.version = TheFox::MBDB::VERSION
11
+ spec.date = TheFox::MBDB::DATE
12
+ spec.author = 'Christian Mayer'
13
+ spec.email = 'christian@fox21.at'
14
+
15
+ spec.summary = %q{Extended Ruby Classes}
16
+ spec.description = %q{This gem extents some of the basic Ruby classes by missing functionalities.}
17
+ spec.homepage = TheFox::MBDB::HOMEPAGE
18
+ spec.license = 'GPL-3.0'
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject{ |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.require_paths = ['lib']
22
+ spec.required_ruby_version = '>=2.1.0'
23
+
24
+ spec.add_development_dependency 'minitest', '~>5.9'
25
+ spec.add_development_dependency 'simplecov', '~>0.12'
26
+ spec.add_development_dependency 'simplecov-phpunit', '~>1.0'
27
+ end
@@ -0,0 +1,10 @@
1
+ {
2
+ "folders":[
3
+ {
4
+ "path": ".",
5
+ "name": "MBDB.rb",
6
+ "folder_exclude_patterns": [ ],
7
+ "file_exclude_patterns": [ ]
8
+ }
9
+ ]
10
+ }
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mbdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Christian Mayer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: simplecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: simplecov-phpunit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ description: This gem extents some of the basic Ruby classes by missing functionalities.
56
+ email: christian@fox21.at
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - ".ackrc"
62
+ - ".editorconfig"
63
+ - ".gitignore"
64
+ - ".gitlab-ci.yml"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - Makefile
68
+ - Makefile.common
69
+ - README.md
70
+ - bin/dev
71
+ - lib/mbdb.rb
72
+ - lib/mbdb/version.rb
73
+ - mbdb.gemspec
74
+ - mbdb.sublime-project
75
+ homepage: https://github.com/TheFox/mbdb.rb
76
+ licenses:
77
+ - GPL-3.0
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: 2.1.0
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 2.6.8
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: Extended Ruby Classes
99
+ test_files: []